تحدد "الترتيب حسب" كيفية فرز الصفوف في الرد. على سبيل المثال، يتم ترتيب الصفوف حسب عدد أذونات الوصول تنازليًا، في حين يختلف ترتيب الصفوف حسب سلسلة البلد.
تمثيل JSON
{"desc": boolean,// Union field one_order_by can be only one of the following:"metric": {object (MetricOrderBy)},"dimension": {object (DimensionOrderBy)}// End of list of possible types for union field one_order_by.}
الحقول
desc
boolean
إذا كانت القيمة هي true، يمكنك الترتيب تنازليًا. إذا كانت القيمة خاطئة أو غير محدّدة، يتم الترتيب تصاعديًا.
حقل الاتحاد one_order_by. حدِّد نوع طلب واحدًا في OrderBy. يمكن أن يكون one_order_by واحدًا فقط مما يلي:
ترتيب أبجدي رقمي باستخدام نقطة رمز يونيكود على سبيل المثال، "2" < "A" < "X" < "b" < "z".
CASE_INSENSITIVE_ALPHANUMERIC
الترتيب الأبجدي الرقمي غير حسّاس لحالة الأحرف حسب نقطة رمز Unicode بأحرف صغيرة. على سبيل المثال، "2" < "A" < "b" < "X" < "z".
NUMERIC
يتم تحويل قيم السمات إلى أرقام قبل ترتيبها. على سبيل المثال، في الترتيب NUMERIC، "25" < "100"، وترتيب ALPHANUMERIC، "100" < "25". جميع قيم السمات غير الرقمية لها قيمة ترتيب متساوية أسفل جميع القيم الرقمية.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eOrderBys determine the sorting of rows in responses, based on metrics or dimensions.\u003c/p\u003e\n"],["\u003cp\u003eYou can sort by metrics (e.g., access count) or dimensions (e.g., country).\u003c/p\u003e\n"],["\u003cp\u003eSorting can be done in ascending or descending order, specified by the \u003ccode\u003edesc\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eDimension sorting offers different ordering options like alphanumeric, case-insensitive alphanumeric, and numeric, controlled by \u003ccode\u003eorderType\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content describes how to define row sorting in a response using \"OrderBys.\" Sorting can be ascending or descending, specified by the `desc` field. Rows are sorted by either a `metric` or a `dimension`, selected using the `one_order_by` field. `MetricOrderBy` uses a `metricName`. `DimensionOrderBy` uses a `dimensionName` and an `orderType` like `ALPHANUMERIC` or `NUMERIC`. The order type defines the rule for string dimension ordering.\n"],null,[]]