Because getClosestPeersOffline now only returns peers that are closer than the caller, we have to sort the test dhts by closeness to query targets before using them.
Change checklist
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation if necessary (this includes comments as well)
[x] I have added tests that prove my fix is effective or that my feature works
Because getClosestPeersOffline now only returns peers that are closer than the caller, we have to sort the test dhts by closeness to query targets before using them.
Change checklist