Skip to content

Sorting Folders in Inbox Folder doesn't work #168

Closed

Description

@ryanthara

I created a couple of folders in my vault, with numbers and chars as sorting indices.

The vault mode is set to Inbox, but sorting is only working after restarting ZenNotes and not immediately.

I use version 2.3.0 on macOS Sequoia.

Activity

  1. added
    bug
    on Jun 14, 2026
  2. adibhanna commented on Jun 15, 2026

    @adibhanna
    Contributor

    Thanks @ryanthara. Reproduced it: in the sidebar, folders were rendered in on-disk/insertion order and never actually sorted by name — so folders named with numeric/character prefixes only fell into place after a restart (a fresh read), and a folder created mid-session dropped to the bottom until you restarted.

    Fix (9c1c792, shipping in 2.4.0): folders are now sorted by name with a numeric-aware comparator (so 2 Foo comes before 10 Foo), applied at render time — a newly created folder lands in its correct position immediately, no restart. The same numeric-aware comparator now also applies to notes and assets when you sort by Name (previously 10 Foo sorted above 2 Foo there too).

    Note: folders sort by name automatically; note ordering follows the sidebar Sort control, so pick Name (A–Z) to see notes ordered the same way.

    Closing as fixed — reopen if any prefixed folder still shows out of order without a restart.

  3. added a commit that references this issue on Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions