The following basic LINQ to SQL statement does not result in the orderby working. As you can see in the T-SQL there is no orderby. Do you know why?
LINQ to
I got same issue while sorting year from transaction table.
try this
var results = (from stats in db.t_harvest_statistics select stats.unit_number).Distinct().OrderBy(x =(Int16)x.unit_number).ToList();
after getting distinct value use orderby method