retype icon indicating copy to clipboard operation
retype copied to clipboard

Ordering using alpha does not respect alphabetical order when subfolders are included

Open xyeLz opened this issue 2 years ago • 2 comments

If allowing pages to use their default ordering preferences, which according to the documentation should be alphabetical, this does not work if the sidebar navigation structure includes folders. Those folders take precedence in the sorting order and are alphabeticized first; then the individual pages are alphabeticized, resulting in two different sets of alphabetical items which are not in order from A-Z. Take a look at the following screenshot from my page before I manually adjusted the order using number values:

folders

xyeLz avatar Aug 11 '22 00:08 xyeLz

By default, Retype orders folders by-alpha first (on top) in the navigation tree and then pages within the folder are ordered by-alpha below the folders.

I remember we did a lot of experimentation with alpha ordering all items in the tree navigation and we were just not satisfied with the user-experience when both folders and pages were intermixed with an alpha-order. Was that the right decision? I'm not sure.

~~Can you post a screen capture of your navigation tree with your custom ordering applied?~~ I found it

Screen Shot 2022-08-10 at 6 51 52 PM

geoffreymcgill avatar Aug 11 '22 00:08 geoffreymcgill

Hah yup. Was about to grab the screenshot myself. I'm all about user flexibility. I'm not sure the difficulty level of implementing a per-page flag (perhaps in the index.yml for that folder) that allows the user the choice between whether they want to use separate or conjoined alphabeticism. For me, it's easy enough to manually configure them, but it would get extremely unruly if this was the type of folder where I added or removed items often and had to manage order numbers. It's also really a headache for something like the Concepts > Cloud subfolder. I have 12 items in this subfolder and only 1 of them is a dropdown itself. But because the dropdown doesn't naturally fall at the absolute top or bottom of this list alphabetically, because of how the sorting works, I would need to give every single page (as well as the subfolder) an order number, which I personally just feel should be unnecessary. Screenshot of my poorly explained logic:

order

xyeLz avatar Aug 11 '22 01:08 xyeLz