Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9760

Re: AM I AN IDIOT? WHAT DOES GetLast() do???

$
0
0

Here is the e.g.

 

var sorted_result = query_result.OrderBy(n=>n.ID);

 

the above OrderBy() function sorts the query result in ascending order based on the column ID.

 

you can define sorting criteria using any column with the help of function literal n=>n.<column>

 

 

Note: instead of n, you can use any character for function literal.



Viewing all articles
Browse latest Browse all 9760

Trending Articles



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