I have created a function that has the follwing parameter:
List>> orderBy = null
T
try this
IOrderedQueryable temp = null; foreach (Expression> func in orderBy) { if (temp == null) { temp = catalogProducts.OrderBy(func); } else { temp = temp.OrderBy(func); } }