Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPs in ARP table not sorted numerically #4185

Closed
xorbital opened this issue Jun 26, 2020 · 4 comments
Closed

IPs in ARP table not sorted numerically #4185

xorbital opened this issue Jun 26, 2020 · 4 comments
Labels
help wanted Contributor missing / timeout

Comments

@xorbital
Copy link
Contributor

Describe the bug
The ARP table sorts the IPs in this order:

  • 192.168.1.1
  • 192.168.1.11
  • 192.168.1.2

To Reproduce
Steps to reproduce the behavior:
Go to Interfaces - Diagnostics - ARP table
Click on "IP" to sort via IP.

Expected behavior
The IPs should be sorted in numeric ascending / descending order

Screenshots
Screenshot_2020-06-26 ARP Tabelle Diagnose Schnittstellen OPNsense localdomain

Relevant log files
(not applicable)

Additional context
It seems like the IPs are interpreted as a string while there should probably be some number sorting going on.

Environment
OPNsense 20.1.7-amd64

Thank you very much for your work on this project, I really appreciate it ❤️

@fichtner
Copy link
Member

fichtner commented Jun 26, 2020 via email

@AdSchellevis
Copy link
Member

bootgrid doesn't support natural sorting (rstaib/jquery-bootgrid#419), in which case we should build an api which handles the data feed (like the model does) or extend bootdgrid, both options are unlikely to be implemented shortly. In the case of arp, one could reformat the addresses to zero padded (e.g. 192.168.001.001) in which case they would sort correct automatically, but might lead to other concerns.

@OPNsense-bot
Copy link

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository,
please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.

@OPNsense-bot OPNsense-bot added the help wanted Contributor missing / timeout label Jan 6, 2021
@pakair
Copy link

pakair commented Jun 4, 2022

arp -n | sort -V produces ip-sorted output.

AdSchellevis added a commit that referenced this issue Oct 30, 2022
…side searchable variant. closes #6087

With searchRecordsetBase() we're now able to push dataset searches more easily to the server side, which also offers a more consistent search experience to users. (see also #4185 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributor missing / timeout
Development

No branches or pull requests

5 participants