تحدد "الترتيب حسب" كيفية فرز الصفوف في الرد. على سبيل المثال، يتم ترتيب الصفوف حسب عدد أذونات الوصول تنازليًا، في حين يختلف ترتيب الصفوف حسب سلسلة البلد.
تمثيل 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, such as by access count or country.\u003c/p\u003e\n"],["\u003cp\u003eYou can order by metrics (like values) or dimensions (like country or date).\u003c/p\u003e\n"],["\u003cp\u003eOrdering can be ascending (default) or descending, controlled by the \u003ccode\u003edesc\u003c/code\u003e boolean.\u003c/p\u003e\n"],["\u003cp\u003eDimension ordering further offers alphanumeric, case-insensitive alphanumeric, and numeric options for string values.\u003c/p\u003e\n"]]],["The content defines how to sort rows in a response using \"OrderBys.\" Sorting can be ascending or descending via a boolean `desc`. Rows are sorted by either `metric` values, specified by `metricName`, or by `dimension` values, specified by `dimensionName`. For dimensions, `orderType` controls the sorting rule. `orderType` supports `ALPHANUMERIC`, `CASE_INSENSITIVE_ALPHANUMERIC`, or `NUMERIC`. The `MetricOrderBy` and `DimensionOrderBy` structures are used to define the criteria of sorting.\n"],null,[]]