mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Merge pull request #4246 from stefangross/develop
Fixed an issue where using sort on the movie request section wouldnt work
This commit is contained in:
commit
485ae095db
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,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