Feature #15437
closedUse natural sorting when sorting interfaces
100%
Description
When the option Interfaces Sort / Sort Alphabetically is enabled, Interfaces are sorted alphabetically instead of naturally. This causes interfaces to be sorted like this:
- LAN
- VLAN12
- VLAN120
- VLAN24
- VLAN240
- WAN
This behavior is not at all great for interface-descriptions containing numbers as it causes even more confusion than unsorted interfaces. Natural sort would improve this a lot:
- LAN
- VLAN12
- VLAN24
- VLAN120
- VlAN240
- WAN
Updated by Flo Faber almost 2 years ago
Opened a PR on GitHub: https://github.com/pfsense/pfsense/pull/4683
Updated by Jim Pingle almost 2 years ago
- Tracker changed from Bug to Feature
- Affected Architecture deleted (
All)
Updated by Marcos M over 1 year ago
- Subject changed from Interfaces sorted alphabetically instead of naturally to Use natural sorting when sorting interfaces
- Status changed from New to Pull Request Review
- Target version set to 2.8.0
- Plus Target Version set to 24.08
Updated by Marcos M over 1 year ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Updated by Jim Pingle over 1 year ago
- Plus Target Version changed from 24.08 to 24.11
Updated by Alhusein Zawi over 1 year ago
after enabling "Sort Alphabetically"
LAN
VLAN1
VLAN12
VLAN120
VLAN24
VlAN240
WAN
24.11-ALPHA (amd64)
built on Sat Oct 12 8:22:00 PDT 2024
FreeBSD 15.0-CURRENT
Updated by Jordan G over 1 year ago
once alphabetical sort has been enabled the interface description sort adheres to alphanumerical ascending list order
tested with 24.11.b.20241026.1338 amd64
Updated by Christopher Cope about 1 year ago
- Status changed from Feedback to Resolved
Looks good on
24.11-BETA (amd64) built on Sat Nov 9 14:00:00 UTC 2024 FreeBSD 15.0-CURRENT
Marking resolved.
Updated by cemysce . 15 days ago
- LAN
- LAN1
- LAN10G1
- LAN10G2
- LAN2
sort -V (from GNU coreutils) implements a similar natural sorting of alphanumeric text (it's intended for version strings), and it produces the order I'd expect:
- LAN
- LAN1
- LAN2
- LAN10G1
- LAN10G2
Updated by cemysce . 15 days ago
Oh I think I see the problem. The edited code must not be addressing all the places an interface list appears. The Interfaces menu is still not sorted naturally. However, the Interfaces widget on the dashboard, the tabs under Firewall/Rules, and the interface selector for various services, all have it sorted naturally.