public static IOrderedQueryable <TSource> Sort <TSource>(this IOrderedQueryable <TSource> source, SortQueryContext sortQuery)
 {
     return(sortQuery.Direction == SortDirection.Descending
         ? source.ThenByDescending(sortQuery.GetPropertyPath())
         : source.ThenBy(sortQuery.GetPropertyPath()));
 }
 /// <inheritdoc />
 public virtual IQueryable <TResource> Sort(IQueryable <TResource> entities, SortQueryContext sortQueryContext)
 {
     return(entities.Sort(sortQueryContext));
 }
        /// <inheritdoc />
        public virtual IQueryable <TResource> Sort(IQueryable <TResource> entities, SortQueryContext sortQueryContext)
        {
            _logger.LogTrace($"Entering {nameof(Sort)}({nameof(entities)}, {nameof(sortQueryContext)}).");

            return(entities.Sort(sortQueryContext));
        }