Bug 7886 - load information is arbitrarily ordered
Summary: load information is arbitrarily ordered
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Administration (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.15.0
Assignee: Samuel Mannehed
Keywords: ossman_tester, prosaic
Depends on:
Reported: 2022-04-08 08:51 CEST by Pierre Ossman
Modified: 2022-04-14 10:59 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2022-04-08 08:51:44 CEST
There doesn't seem to be any sense to the order tlwebadm displays subclusters and agents on the load page. It would probably be a lot easier to find things if the order is consistent and sensible.

See bug 7834 for how we looked at ordering for tlctl.
Comment 2 Samuel Mannehed cendio 2022-04-13 15:53:57 CEST
This is now fixed.

Note that more advanced subcluster and agent names will be sorted differently in tlwebadm depending on your system's locale.

This, for example, is the correct sorting in sv_SE.utf-8:

 a, b, c, å, ä, ö

While this is the correct way in en_US.utf-8:

 a, ä, å, b, c, ö

This is because "å" and "ä" are seen as variants of "a" here.
Comment 3 Pierre Ossman cendio 2022-04-14 10:59:56 CEST
Order now seems to follow locale properly. Using an en_US locale, I'm getting the following expected order:

 * Numbers before letters
 * "å" sorted as a
 * upper and lower case sorted together
 * odd stuff, like € sorted after letters

This matches what I see from "ls".

I can see that sorting is applied to both subclusters and to agents within a subcluster.

Note You need to log in before you can comment on or make changes to this bug.