dashboard sort order is inconsistent

Started by tessus, January 17, 2025, 08:52:04 PM

Previous topic - Next topic
OPNsense 24.7.12-amd64

The dashboard widgets Interfaces and Interface Statistics use strange and inconsistent sort order.

While the Interface Statistics widget seems to sort on the interface name in descending order, the Interfaces widget has me puzzled. It's not sorted by name, identifier (lan, wan, opt1, opt2, ...), or IP.
Additionally there is no way to sort or choose the interfaces in the widget settings. In 24.1 it was possible to choose the interfaces and at least both widget were sorted by the interface name in ascending order.

Does anyone know why the new widgets use this weird inconsistent sorting?

At least you still have your Interfaces, mine all disappeared, lol.


To contact the developers best open an issue on Github.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

January 21, 2025, 07:58:39 PM #4 Last Edit: January 21, 2025, 08:08:26 PM by Ben S
From a quick read of the code and confirming with my dashboard, it looks as if the interface statistics widget is sorted by total packets, descending, and the interfaces widget is just presented in the order displayed by ifconfig.  Whether they should/will change is not for me to say of course, just thought I'd answer the question of what the current order actually is.

Edit: I noticed OP is right about the descending order by interface name if the statistics widget is showing a table - the packet count descending order is for the pie chart legend, perhaps that's ordered that way to improve how the pie chart looks, or something.