toolstack / Folio

A beautiful markdown note-taking app for GNOME (forked from Paper)
GNU General Public License v3.0
182 stars 22 forks source link

Sorting order for notes with numbers #163

Closed qumuq-til closed 2 months ago

qumuq-til commented 2 months ago

I keep my notes numbered so they're supposed to go be listed like this:

But when asked to sort notes in alphabetical order Folio presents the following list:

Folio should respect the numbering so that "Note 1" is followed by "Note 2" instead of relying on purely numerical/alphabetical sorting.

Same thing applies to notebook list.

toolstack commented 2 months ago

This is as intended, alpha sorting will always sort this way as it's not seeing the numbers, only the characters that make them up and a shorter string will always be sorted first.

An easy workaround is to label your notes with zero padding, so:

Note 01
Note 02
Note 03
...
Note 10
Note 11
Note 12

This will sort them in the "right" order.

I could see adding a "Alpha/Numeric" sort option as well, so I'll keep this issue open.