mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
Fixed #3682
This commit is contained in:
parent
fe65a44085
commit
974ee3c25e
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,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