AdGuardHome
AdGuardHome copied to clipboard
Fix for #6320
Closes #6320
This introduces additional sorting function - sortAddress - that extends the behaviour of existing sortIp. There were two options effectively here
- expand the sortIp and (although unlikely) potentially modify the existing behaviour
- create a new sorting function.
The second approach was selected. The unit tests for the previous implementation pass 100%, there is a new set of tests for the new function as well.
I also cleaned up a bit the code around sorting, added some additional type safety and removed a need for es-lint overrides.