Sort ListObject Data in an Excel Worksheet
This REST API sorts a table’s data in an Excel worksheet.
To use this operation, provide the workbook name, worksheet name, and the index of the target ListObject, together with a dataSorter JSON body that defines the sorting criteria.
REST API
POST http://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/listobjects/{listObjectIndex}/sort
Request parameters
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
|---|---|---|---|
| name | string | path | The name of the Excel file stored in Aspose Cloud storage. |
| sheetName | string | path | The name of the worksheet that contains the ListObject. |
| listObjectIndex | integer | path | Zero‑based index of the ListObject (table) within the worksheet. |
| dataSorter | object | body | JSON object that specifies sorting options (e.g., CaseSensitive, HasHeaders, KeyList, SortLeftToRight). |
| folder | string | query | Folder path in storage where the Excel file is located. |
| storageName | string | query | Name of the Aspose Cloud storage. |
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make calls to the Cloud API with cURL.
Cloud SDK Family
Using an SDK is the best way to speed up development. An SDK handles low‑level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: