Sort media queries.