mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 09:12:57 -07:00
fixed issue with sorting movie requests
This commit is contained in:
parent
f3f86d3243
commit
d01da2d288
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ namespace Ombi.Core.Engine
|
||||||
|
|
||||||
// TODO fix this so we execute this on the server
|
// TODO fix this so we execute this on the server
|
||||||
var requests = sortOrder.Equals("asc", StringComparison.InvariantCultureIgnoreCase)
|
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();
|
: allRequests.ToList().OrderByDescending(x => prop.GetValue(x)).ToList();
|
||||||
var total = requests.Count();
|
var total = requests.Count();
|
||||||
requests = requests.Skip(position).Take(count).ToList();
|
requests = requests.Skip(position).Take(count).ToList();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue