Jerori
(Jerori)
1
Whereever I look at entities or devices (or other lists) in Home Assistant that have numbers in it, I wonder why they are sorted like this:
1
11
14
2
3
instead of
1
2
3
11
14
It would be really nice, if I don’t have to rename (automatic) entities with an additional 0, just to make the sorting work more intuitiv
tom_l
2
It is sorting the numbers as strings (words) which read from left to right and have no positional numeric value, just alphabetic.
1
11
111
12
2
21
is equivalent to
a
aa
aaa
ab
b
ba
Can you share a screenshot of where you are seeing this inappropriate sorting?
Also don’t forget to vote for your own request.