ArchWikiSortContacts: improve code