Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

"/_api/web/lists/getbytitle('listname')/items?$select=ID,Title,URL,OrderID&?orderby=OrderID asc" renders the orderId as string

$
0
0

when I execute this method I expect the returned results to be sorted by OrderId (which is a number field). However I believe the rendered results are in string and the order is messed up. the Order Id of 10 jumps on top below Order Id of two. How can I force it to render the orderId as a number so that the order is:

1 2 3 4 5 6 7 8 9 10?


faye fouladi


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>