Does TableQuery support OrderBy? Does TableQuery support OrderBy? azure azure

Does TableQuery support OrderBy?


Does TableQuery support OrderBy, and if yes then how?

No. As of today, Table Service does not support Order By. Please see the list of supported LINQ Operators here.

What you would need to do is fetch the data (which will be sorted by PartitionKey and RowKey) and apply the sorting on the client side.


May not be in the REST API but using linq this can be done using the following way

    List<AttendanceEntity> SortedList = table.ExecuteQuery(query).OrderByDescending(o => o.dateTImeStr).ToList();