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

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;
}