Merge pull request #4246 from stefangross/develop

Fixed an issue where using sort on the movie request section wouldnt work
pull/4301/head^2 v4.0.1463
Jamie 3 years ago committed by GitHub
commit 485ae095db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -317,7 +317,7 @@ namespace Ombi.Core.Engine
// TODO fix this so we execute this on the server
var requests = sortOrder.Equals("asc", StringComparison.InvariantCultureIgnoreCase)
? allRequests.ToList().OrderBy(x => x.RequestedDate).ToList()
? allRequests.ToList().OrderBy(x => prop.GetValue(x)).ToList()
: allRequests.ToList().OrderByDescending(x => prop.GetValue(x)).ToList();
var total = requests.Count();
requests = requests.Skip(position).Take(count).ToList();

Loading…
Cancel
Save