Hi all,
I'm trying to implement dynamic OrderBy using Dynamic LINQ in an Asp Core 3.1 project, here's what I have:
orderedList = filters.SortDirection.ToLower(CultureInfo.CurrentCulture) == "asc" ? orderedList.OrderBy(filters.SortBy).ToList() : orderedList.OrderByDescending(filters.SortBy).ToList();
I note that on the Nuget page (https://www.nuget.org/packages/System.Linq.Dynamic.Core/) it specifies Asp Core 2.1, does anyone know if this can or cannot be used in 3.1 and if not is there an alternative way of achieving this in 3.1?