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:
omgbeez 2026-02-13 13:22:41 -05:00 committed by Clifford Roche
parent e93e4f6f22
commit a5f9cd353b

View file

@ -12,11 +12,11 @@ public class TorrentData(DataContext dataContext) : ITorrentData
.AsNoTracking()
.AsSplitQuery()
.Include(m => m.Downloads)
.OrderBy(m => m.Priority ?? 9999)
.ThenBy(m => m.Added)
.ToListAsync();
return torrents;
return torrents.OrderBy(m => m.Priority ?? 9999)
.ThenBy(m => m.Added)
.ToList();
}
public async Task<Torrent?> GetById(Guid torrentId)