Hello Pankaj, refer below C# Corner blog which will help you. 
 
https://www.c-sharpcorner.com/blogs/sorting-a-data-frame-in-r