Determine whether an IQueryable has been ordered or not
It’s possible. Here’s an extension method: public static bool IsOrdered<T>(this IQueryable<T> queryable) { if (queryable == null) { throw new ArgumentNullException(nameof(queryable)); } return queryable.Expression.Type == typeof(IOrderedQueryable<T>); }