Sort names and links