simplify sort of links