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:
DIYgod
2026-10-12 21:59:56 +08:00
parent de453e9301
commit dd0de3a50c
2 changed files with 4 additions and 2 deletions
@@ -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
@@ -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