fix links sorting