Returning shows in a sorted way

This commit is contained in:
Zoe Roux 2020-03-02 22:21:51 +01:00
parent b79ed8a198
commit ec74c8ef0f

View File

@ -62,7 +62,8 @@ namespace Kyoo.Controllers
public IEnumerable<Show> GetShows() public IEnumerable<Show> GetShows()
{ {
return _database.LibraryLinks.AsEnumerable().Select(x => x.Show ?? x.Collection.AsShow()); return _database.LibraryLinks.AsEnumerable().Select(x => x.Show ?? x.Collection.AsShow())
.OrderBy(x => x.Title);
} }
public IEnumerable<Show> GetShows(string searchQuery) public IEnumerable<Show> GetShows(string searchQuery)