Sort MX records based on their priority