Comment for sort/filter ordering

This commit is contained in:
2023-07-05 13:32:19 +02:00
parent 4f8816400b
commit 83fe3a1dcd

View File

@@ -55,8 +55,10 @@ public class Tab : ITab
.Select(items => items.TransformAsync(MapItem)), .Select(items => items.TransformAsync(MapItem)),
_itemFilters.Connect().StartWithEmpty().ToCollection(), _itemFilters.Connect().StartWithEmpty().ToCollection(),
(items, filters) => (items, filters) =>
//Note: Dont user Sort before where, as DynamicData cant handle
//sort in (so that's if they are before) filters
items items
?.Where(i => filters.All(f => f.Filter(i))) .Where(i => filters.All(f => f.Filter(i)))
.Sort(SortItems()) .Sort(SortItems())
), ),
CurrentLocation CurrentLocation