Added MimeType filter to sort_expanded_url