**Basically this entire feature is only available in iOS 15 due to SortComparator's availability, but I'm considering iOS 14 legacy due to platform-wide upgrade paths.
SettingsStore holds method and order for sorting, as well as the sort comparator the method/order compose
When method or order change, the comparator changes, which triggers the scan store to re-sort the caches
sorting options are not exposed in the settings tab but in a sort dropdown
Technicals:
Add CacheSortComparator to encapsulate sorting of cache items (the things in lists)
Add enums for sorting
CSSortOrderEnum is just a version-independent SortOrder, will swap them out in time (should really just bump to iOS 15 now...)
SortMethodEnum defines the methods of sorting (by file name, scan date, name)
Implement sorting for #38.
Feature:
SortComparator
's availability, but I'm considering iOS 14 legacy due to platform-wide upgrade paths.SettingsStore
holds method and order for sorting, as well as the sort comparator the method/order composeTechnicals:
CacheSortComparator
to encapsulate sorting of cache items (the things in lists)CSSortOrderEnum
is just a version-independentSortOrder
, will swap them out in time (should really just bump to iOS 15 now...)SortMethodEnum
defines the methods of sorting (by file name, scan date, name)Unrelated tidyings
Models/Enums/