Skip to content

Sort checklist groups alphabetically using the current locale - #2467

Open
mcepl wants to merge 1 commit into
TechbeeAT:developfrom
openSUSE-Python:sort-checklist-locale
Open

mcepl wants to merge 1 commit into
TechbeeAT:developfrom
openSUSE-Python:sort-checklist-locale

Conversation

@mcepl

@mcepl mcepl commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Keep unchecked checklist items before checked items, then sort each group with the current app locale's Collator. Re-sort on locale changes and rebuild checkbox state alongside the displayed segments so toggles still update the original Markdown lines.

Preserve headings, blank lines and stored item order. Cover locale-specific ordering, stable case-insensitive ties and toggling after sorting with regression tests.

Keep unchecked checklist items before checked items, then sort
each group with the current app locale's Collator. Re-sort on
locale changes and rebuild checkbox state alongside the displayed
segments so toggles still update the original Markdown lines.

Preserve headings, blank lines and stored item order. Cover
locale-specific ordering, stable case-insensitive ties and
toggling after sorting with regression tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant