AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Fix for #6320

Open grogi opened this issue 6 months ago • 0 comments

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.

image

I also cleaned up a bit the code around sorting, added some additional type safety and removed a need for es-lint overrides.

grogi avatar Jun 14 '25 19:06 grogi