Used by the connection manager to sort addresses into order before dialling

interface AddressSorter ((a, b) => -1 | 0 | 1)