OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: tessus on January 17, 2025, 08:52:04 PM

Title: dashboard sort order is inconsistent
Post by: tessus on January 17, 2025, 08:52:04 PM
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?
Title: Re: dashboard sort order is inconsistent
Post by: Amodin on January 17, 2025, 11:10:38 PM
At least you still have your Interfaces, mine all disappeared, lol.
Title: Re: dashboard sort order is inconsistent
Post by: tessus on January 20, 2025, 11:21:55 PM
Maybe a dev has an idea?
Title: Re: dashboard sort order is inconsistent
Post by: Patrick M. Hausen on January 21, 2025, 04:13:58 AM
To contact the developers best open an issue on Github.
Title: Re: dashboard sort order is inconsistent
Post by: Ben S on January 21, 2025, 07:58:39 PM
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.