In this tutorial we will use the console application to demonstrate the example. Now let's add a class file and below property.
 public class EmployeeModel
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string Address { get; set; }
    public string Email { get; set; }
}  List<EmployeeModel> employees = new List<EmployeeModel>() {
     new EmployeeModel { Id=1,Name="John" ,Address="Address10",Email="john@mail.com"},
     new EmployeeModel { Id=2,Name="Mate" ,Address="Address27",Email="mate@mail.com"},
     new EmployeeModel { Id=4,Name="Maru" ,Address="Address10",Email="maru@mail.com"},
     new EmployeeModel { Id=3,Name="Rose" ,Address="Address31",Email="rose@mail.com"},
     new EmployeeModel { Id=5,Name="Krishna" ,Address="Address33",Email="krishna@mail.com"},
     new EmployeeModel { Id=8,Name="Pape" ,Address="Address24",Email="pape@mail.com"},
     new EmployeeModel { Id=10,Name="Pranav" ,Address="Address77",Email="pranav@mail.com"}
};  List<EmployeeModel> employees = new List<EmployeeModel>() {
     new EmployeeModel { Id=1,Name="John" ,Address="Address10",Email="john@mail.com"},
     new EmployeeModel { Id=2,Name="Mate" ,Address="Address27",Email="mate@mail.com"},
     new EmployeeModel { Id=4,Name="Maru" ,Address="Address10",Email="maru@mail.com"},
     new EmployeeModel { Id=3,Name="Rose" ,Address="Address31",Email="rose@mail.com"},
     new EmployeeModel { Id=5,Name="Krishna" ,Address="Address33",Email="krishna@mail.com"},
     new EmployeeModel { Id=8,Name="Pape" ,Address="Address24",Email="pape@mail.com"},
     new EmployeeModel { Id=10,Name="Pranav" ,Address="Address77",Email="pranav@mail.com"}
};
//1= Id, 2=Name 3=Address 4=Email
Console.WriteLine("--CHOOSE YOUR OPTION--");
Console.WriteLine("1. Id\n2. Name\n3. Address\n4.Email");
Console.WriteLine("Enter Your Option: ");
string optionno = Console.ReadLine();
var data = from d in employees
           select d;
if (optionno == "1")
{
    data = data.OrderBy(m => m.Id);
}
if (optionno == "2")
{
    data = data.OrderBy(m => m.Name);
}
if (optionno == "3")
{
    data = data.OrderBy(m => m.Address);
}
if (optionno == "4")
{
    data = data.OrderBy(m => m.Email);
}
data = data.ToList();
foreach (var item in data)
{
    Console.WriteLine(string.Format("Id: {0} , Name:{1} , Address:{2} , Email Id:{3}", item.Id, item.Name, item.Address, item.Email));
} Just check the LINQ query here i have used Standard Query Expression to get data from the list. So, in you are using Standard Query Expression on that you need to apply list for getting the list item. So here we will not get data till we move to the last step of the code where we have used ToList().
Here in this example as per user input, I am adding the order by condition. Now let's run the code and check the output.
Now let's enter option as 1 to short the data by Id. Here in we can clearly see that the list in got short by Id. 
Now let's enter the option 2 to short the list data by name.



