This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IQueryable<T> OrderBy<T>(this IQueryable<T> source, string sortExpression) | |
{ | |
if (source == null) | |
throw new ArgumentNullException("source", "source is null."); | |
if (string.IsNullOrEmpty(sortExpression)) | |
throw new ArgumentException("sortExpression is null or empty.", "sortExpression"); | |
var parts = sortExpression.Split(' '); |