mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-17 05:08:13 +08:00
fix(desktop): sort subscriptions A to Z for alphabetical ascending
"Alphabetical, ascending" listed folders and feeds from Z to A and "descending" from A to Z, because the A-to-Z comparison was reversed for the ascending order. The unread count orders already matched their labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -58,7 +58,8 @@ const SortByAlphabeticalList = (props: SortListProps) => {
|
||||
const feedTitleB = getPreferredTitle(state.feeds[b]) || ""
|
||||
return sortByAlphabet(feedTitleA, feedTitleB)
|
||||
})
|
||||
return isDesc ? sorted : sorted.reverse()
|
||||
// sortByAlphabet orders A to Z, which is ascending
|
||||
return isDesc ? sorted.reverse() : sorted
|
||||
}
|
||||
|
||||
// Return onboarding feeds first, then regular feeds
|
||||
|
||||
+2
-1
@@ -101,7 +101,8 @@ export const SortByAlphabeticalFeedList = ({
|
||||
}
|
||||
return sortByAlphabet(nameA, nameB)
|
||||
})
|
||||
return isDesc ? sorted : sorted.reverse()
|
||||
// sortByAlphabet orders A to Z, which is ascending
|
||||
return isDesc ? sorted.reverse() : sorted
|
||||
}
|
||||
|
||||
// Return onboarding categories first, then regular categories
|
||||
|
||||
Reference in New Issue
Block a user