Natural sort as the default sorting method

Currently, the sorting is done alphabetically. This causes issues when sorting strings that contain numbers, as numbers above 9 are sorted incorrectly. In the Ruuvi app I can sort manually, but this doesn’t apply to Ruuvi station.

Why numbers?
I noticed the issue when I got my 10 th ruuvi tag. I had named my tags 1 Room, 2 Kitchen, 3 Living room and so on. Each tag has the corresponding number written on it so I can quicker identify the tag in question if it is misplaced or I do some calibration etc to the tags.

Hello @jaape ,

In Ruuvi Station app, you are able to sort sensors manually and the sorting is reflected to any Ruuvi Station app where you are signed in with your user account accordingly.

We will have a look at the ordering with numbers. Thanks for the report.

Tag names are strings and sorted as strings. You can add leading zeroes to your names “01 Room”, “02 Kitchen”, “03 Living room” to fix sorting issue.

Btw If you need to identify tag you can aslo scan it with NFC when RuuviStation is running.

1 Like

You’re absolutely right—alphabetical sorting often causes confusion with numbered names. Natural sort would definitely solve this, making “10 Room” come after “9 Pantry,” for example. If the Ruuvi Station doesn’t support natural sort yet, maybe you could suggest it as a feature request on their GitHub or support page. In the meantime, you could add leading zeros (e.g., “01 Room”) as a workaround. Hope this helps!

1 Like