graylog-labs / graylog2-web-interface

[DEPRECATED]
https://www.graylog.org/
611 stars 174 forks source link

Auto ordering dasboards on titel not correct with numbers #1674

Open IgoBoerrigter opened 9 years ago

IgoBoerrigter commented 9 years ago

If you want to order your dasboards by numbering them it fails at 10.

It goes like:

1 10 2 3 4 5 6 7 8 9

edmundoa commented 9 years ago

Hi,

I assume you were referring to the dashboard list page, please correct me if I am wrong.

The ordering you showed is not wrong, meaning that titles are actually sorted, but not following the natural sort order you expected. As a workaround, you could prepend zeroes to numbers below 10, e.g. 01, 02.

Having said that, I will leave the issue opened, as we should consider using natural sort order instead of ASCII order when presenting ordered lists in the web interface.

IgoBoerrigter commented 9 years ago

Hi,

yeah thats is what i meant.Your right about it not being wrong:). Just a usability thingy where natural order would indeed be usefull. Thanks for the feedback