I was wondering how people were going about sorting a table in asp.net mvc? I\'ve heard of javascript solutions that work pretty well with non-paged tables, such as jquery\'s ta
I prefer the methods described here: http://www.c-sharpcorner.com/UploadFile/camurphy/csharpLists03302006170209PM/csharpLists.aspx
So for ex:
var products = new List();
products = ProductRepository.GetAll();
// Sort Results
products.Sort(
delegate(Products p1, Products p2) {
return p1.Name.CompareTo(p2.Name);
});