1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-06 19:58:38 +00:00

core: fix custom categories sorting. (#10078)

Fix #10031
This commit is contained in:
Diego Heras 2020-11-02 11:31:30 +01:00 committed by GitHub
parent f17b9dbc21
commit e340813291
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ namespace Jackett.Common.Models
var newCat = new TorznabCategory(c.ID, c.Name);
newCat.SubCategories.AddRange(sortedSubCats);
return newCat;
}).OrderBy(x => x.ID > 100000 ? "zzz" + x.Name : x.ID.ToString()).ToList();
}).OrderBy(x => x.ID >= 100000 ? "zzz" + x.Name : x.ID.ToString()).ToList();
return sortedTree;
}