Ejemplo n.º 1
0
 /// <summary>
 /// Orders a query based upon the key selector provided.
 /// </summary>
 /// <typeparam name="TSource">The type of ParseObject being queried for.</typeparam>
 /// <typeparam name="TSelector">The type of key returned by keySelector.</typeparam>
 /// <param name="source">The query to order.</param>
 /// <param name="keySelector">A function to extract a key from the ParseObject.</param>
 /// <returns>A new ParseQuery based on source whose results will be ordered by
 /// the key specified in the keySelector.</returns>
 public static ParseQuery <TSource> OrderBy <TSource, TSelector>(
     this ParseQuery <TSource> source, Expression <Func <TSource, TSelector> > keySelector)
     where TSource : ParseObject
 {
     return(source.OrderBy(GetOrderByPath(keySelector)));
 }