SqLite doesn't support OrderBy on DateTimeOffset types
Sorting will require a copy to fix this for the moment, could probably change the underlying type later to prevent this.
This commit is contained in:
parent
e93e4f6f22
commit
a5f9cd353b
1 changed files with 3 additions and 3 deletions
|
|
@ -12,11 +12,11 @@ public class TorrentData(DataContext dataContext) : ITorrentData
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
.AsSplitQuery()
|
.AsSplitQuery()
|
||||||
.Include(m => m.Downloads)
|
.Include(m => m.Downloads)
|
||||||
.OrderBy(m => m.Priority ?? 9999)
|
|
||||||
.ThenBy(m => m.Added)
|
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
return torrents;
|
return torrents.OrderBy(m => m.Priority ?? 9999)
|
||||||
|
.ThenBy(m => m.Added)
|
||||||
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<Torrent?> GetById(Guid torrentId)
|
public async Task<Torrent?> GetById(Guid torrentId)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue