On second thought, with Discovered meaning autoconnectable, this sorting is not needed.