🏠 back to Observable

Bug: Collections order ignores non-letter characters

The ordering of notebooks in the collections page does not match the collections dialog. It appears that non-letter/number characters are ignored. (Originally reported here.)

Steps to reproduce

  1. Create four collections: “Test A0”, “#Test A1”, “Test#A1”, “Test A2”.
  2. Open collections dialog in notebook detail, take note of sort order.
  3. Open collections page, take note of sort order.

Expected behavior

Order of notebooks in collections page is identical to collections dialog.

Actual behavior

Notebooks in collections dialog have the following order:

  1. #Test A1”
  2. “Test A0”
  3. “Test A2”
  4. “Test#A1”

Notebooks in collections page have the following order:

  1. “Test A0”
  2. #Test A1”
  3. “Test#A1”
  4. “Test A2”

Background / scenario

I’m using characters like “#” and “:” to prefix certains “types” of collections and enforce a clustered sort order. Due to the above bug this only works for the collections dialog.