Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use natural sorting order in left navigation area #1760

Open
ckuenzle opened this issue Feb 21, 2025 · 2 comments
Open

Use natural sorting order in left navigation area #1760

ckuenzle opened this issue Feb 21, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@ckuenzle
Copy link

Currently, groups are shown in an alphabetical order. If the group names contain multi-digit numbers of varying length, the resulting order looks like this:

  • group_0
  • group_1
  • group_10
  • group_100
  • group_1000
  • group_1001
  • group_1002
  • group_1003
  • group_1004
  • group_1005
  • group_1006
  • group_1007
  • group_1008
  • group_1009
  • group_101
  • group_1010

To get a more intuitive order, I suggest using the natural sort order, treating multi-digit numbers atomically:

  • group_0
  • group_1
  • group_2
  • group_3
  • group_4
  • group_5
  • group_6
  • group_7
  • group_8
  • group_9
  • group_10
  • group_11
@ckuenzle ckuenzle added the enhancement New feature or request label Feb 21, 2025
@axelboc
Copy link
Contributor

axelboc commented Feb 21, 2025

Hi @ckuenzle, we don't perform any sorting; we respect the order of the entities as they are stored in the HDF5 file. So my recommendation would be to look at the tool that creates your HDF5 files.

@ckuenzle
Copy link
Author

@axelboc Thanks for letting me know. I wasn't aware of that. In that case, my suggestion for enhancement is to introduce the possibility to sort the groups and datasets in the navigation area (of course using the natural sort order😀).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants