Sorting of iP addresses not correct #983
Labels
bug 🐛
Something isn't working
next release/in dev image🚀
This is coming in the next release or was already released if the issue is Closed.
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
The system does not sort the IP-Addresses in increasing order, but like . 1, .10, .100, .2, .20, .200, .3, .30, .4, .40 etc in the connected device list, when sorting by IP.
![Image](https://private-user-images.githubusercontent.com/185612346/407901061-e3dde898-5177-4a01-b2a0-82805f1ed598.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTY1MjcsIm5iZiI6MTczOTM1NjIyNywicGF0aCI6Ii8xODU2MTIzNDYvNDA3OTAxMDYxLWUzZGRlODk4LTUxNzctNGEwMS1iMmEwLTgyODA1ZjFlZDU5OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQxMDMwMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZmQ3MDlkNGU1NDk5MDZjMjIyOGNjMjEwZWE5ZWM5MmNhMjEyOTVjNGUxZjMxYTA3MDVkNTlmZjIxMTBkYjUzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.BLRySDQWYHNT4Z2Zdzw6LWMEbNL1IHcLj7a-cGxEqoY)
Expected Behavior
Sort the IP in increasing number .1, .2, .3, .4, .10, .20, .30, .40, .100, .200 etc
Steps To Reproduce
Click on Network, Under connected devices click to sort by IP address.
Version 25.1.19
app.conf
docker-compose.yml
What installation are you running?
Production (netalertx)
app.log
It is not really a bug in the true sense, where something is going wrong. I believe the system is parsing the IP-Address digit by digit when sorting them, instead of going for the numbers.
Debug enabled
The text was updated successfully, but these errors were encountered: