"Smart Sort" IP addresses by octet in "Local DNS Records" section

When sorting the "Local DNS Records" by IP address (ascending or descending), the lists are currently sorted by the rightmost different digit. For instance, the following list is sorted by how the interface would sort ascending:

  • 192.168.0.1
  • 192.168.0.105
  • 192.168.0.22
  • 192.168.0.3

I'd like for the sort to be a "smart sort" (much like the Windows File Explorer might) that sorts by each octet as a whole, rather than by individual digits. So, the list above would get sorted ascending like this instead:

  • 192.168.0.1
  • 192.168.0.3
  • 192.168.0.22
  • 192.168.0.105

(Though my example uses just the fourth octet, my request would be for this to examine all four octets in order.)

Will be fixed in v5.1.

Fixed in v5.1
https://pi-hole.net/2020/07/15/pi-hole-5-1-released/