Version: unspecified (using Devel) OS: Linux I can see no pattern in the found WiFi list. Either sort them by strength or by encryption or by name but please sort them somehow. Reproducible: Sometimes
The list is not sorted at all, entries are just appended and the outdated ones removed. Actually it is a QHash, if you know how hashes work you know they are difficult to sort efficiently. The fact that the sort involves several criteria (one for each item type) is a complication to make the sorting efficient. I have been thinking on how to do it and even if I find a efficient solution that would require refactoring some classes, which will take time.
Git commit 0e12e39224f3f4011a0e3d04760a07ef6461cf8c by Lamarque V. Souza. Committed on 30/08/2011 at 20:10. Pushed by lvsouza into branch 'nm09'. Sort connection list by type and then by activation state (activated, activating, unknown). Default type order is: wifi, hidden wifi, VPN, Gsm, other connection types (ethernet, dsl, cdma, etc), unconfigured access points (wifi), unconfigured interface. This order is hard-coded. BUG: 275502 FIXED-IN: nm09 M +20 -5 applet/activatablelistwidget.cpp M +19 -1 libs/client/remoteactivatablelist.cpp M +1 -1 plasma_nm_version.h M +9 -5 libs/internals/activatable.h M +1 -1 applet/activatablelistwidget.h http://commits.kde.org/networkmanagement/0e12e39224f3f4011a0e3d04760a07ef6461cf8c
Are they now alphabetically sorted as well (which actualy was my initial request) or is this still not possible do to your QHash stuff?
Git commit 2144cb1b554d6b3e9b9e7fb54bcf579d2336524d by Lamarque V. Souza. Committed on 01/09/2011 at 19:31. Pushed by lvsouza into branch 'nm09'. Also sort connections by name (or ssid if applicable). CCBUG: 275502 M +12 -1 libs/client/remoteactivatablelist.cpp http://commits.kde.org/networkmanagement/2144cb1b554d6b3e9b9e7fb54bcf579d2336524d