Sort team picks by the time they were team picked (#980)

This commit is contained in:
Josh 2024-02-23 08:38:02 -06:00 committed by GitHub
commit a2eaedc85b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 136 additions and 21 deletions

View file

@ -247,7 +247,8 @@ public class SlotsController : ControllerBase
pageData.TotalElements = await StatisticsHelper.SlotCount(this.database, queryBuilder);
SlotSortBuilder<SlotEntity> sortBuilder = new();
sortBuilder.AddSort(new LastUpdatedSort());
sortBuilder.AddSort(new TeamPickSort());
sortBuilder.AddSort(new FirstUploadedSort());
List<SlotBase> slots = await this.database.GetSlots(token, queryBuilder, pageData, sortBuilder);