Revert "Fixes always showing non-featured apps last in FeaturedViewController"

This reverts commit f76e3a12b6.

We’re not sure we want to commit to this behavior, so reverting for now.
This commit is contained in:
Riley Testut
2023-12-11 14:06:34 -06:00
committed by Magesh K
parent f2ab214f27
commit 6a520b3410
2 changed files with 19 additions and 38 deletions

View File

@@ -348,6 +348,11 @@ private extension FeaturedViewController
// Instead, sort by StoreApp.installedApp.storeApp.source.sourceIdentifier, which will be either nil OR source ID.
NSSortDescriptor(keyPath: \StoreApp.installedApp?.storeApp?.sourceIdentifier, ascending: true),
// Show featured apps first.
// Sorting by StoreApp.featuringSource crashes because Source does not respond to compare:
// Instead, sort by StoreApp.featuringSource.identifier, which will be either nil OR source ID.
NSSortDescriptor(keyPath: \StoreApp.featuringSource?.identifier, ascending: false),
// Randomize order within sections.
NSSortDescriptor(keyPath: \StoreApp.featuredSortID, ascending: true),