focus-editor / focus

A simple and fast text editor
GNU General Public License v3.0
1.82k stars 99 forks source link

Fix alphabetical projects sorting order #421

Closed Roman-Skabin closed 2 months ago

Roman-Skabin commented 2 months ago

Before: image After: image

Roman-Skabin commented 2 months ago

Oops, that's a bit incorrect. Right now we are trying to sort an empty array :) Also compare_strings does not do correct things

Roman-Skabin commented 2 months ago
  1. Changed strings compare function which has a bit more complex ordering (see compare_alphabetically function in switch_to_project.jai).
  2. Added new alphabetical_no_case sorting order to be "completely" alphabetical: it does not place uppercase letters before lowercase ones.

most_recent_first: image

alphabetical: image

alphabetical_no_case: image