Tweak and sort markdown links