--- title: "View.GetSorting - Web Scraping API - Mozenda" slug: "viewgetsorting" description: "The API operation View.GetSorting returns the current sorting configuration of a specified view. " updated: 2024-05-14T14:23:30Z published: 2024-05-14T14:23:30Z canonical: "help.mozenda.com/viewgetsorting" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # View.GetSorting ### Description Returns the current **sorting** configuration for the **view**. ### URL parameters | Name | Required | Type | Description | | --- | --- | --- | --- | | `ViewID` | True | numeric | Unique identifier for the **view**. | ### Responses | Name | Type | Description | | --- | --- | --- | | `Result` | string | `Success` if the operations was successful. | | `Sort` | [Sort](https://help.mozenda.com/docs/api-response-objects/#view-sort) | Object representing the **sorting** options. | ### Sample request ``` curl -X GET 'https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=View.GetSorting&ViewID=1103' ``` ### Sample responses #### XML ``` Success 1140 91709 True ``` #### JSON (add `&ResponseFormat=JSON`) ``` { "Sort": [ { "ViewSortID": 1140, "FieldID": 91709, "IsAscending": true } ], "JsonResult": { "Command": "View.GetSorting", "AutoLoggedIn": false, "WebConsoleKey": "", "Result": "Success", "ErrorCode": "", "ErrorDescription": "", "ErrorList": [], "ExecutionTime": { "Ticks": 0, "Days": 0, "Hours": 0, "Milliseconds": 0, "Minutes": 0, "Seconds": 0, "TotalDays": 0, "TotalHours": 0, "TotalMilliseconds": 0, "TotalMinutes": 0, "TotalSeconds": 0 } } } ```