Sorting and save

This commit is contained in:
2023-02-05 08:59:50 -07:00
parent 9def988f9d
commit e9d2c6374e
3 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,8 @@ public interface ISortingContainer
Models.SortingContainer[] TestStatic_Sort(List<Models.SortingContainer> collection) =>
Sort(collection);
static Models.SortingContainer[] Sort(List<Models.SortingContainer> collection) =>
(from l in collection orderby l.Sorting.DistancePermyriad select l).ToArray();
static Models.SortingContainer[] SortUsingDaysDelta(List<Models.SortingContainer> collection) =>
(from l in collection orderby l.Sorting.DistancePermyriad, l.Sorting.DaysDelta select l).ToArray();
}