buildingblocks/grunt-combine-media-queries — pull request #15 by blomeyer (2014-02-12 15:56:30+00:00)
Title: Improve ordering of media queries

I know (hope) this is rather rare issue but I need it in a project that has a print layout with a lot of styles from all different media queries. I detected a bug when working with media queries that are considered for print and screen combined with a (min|max)-(width|height) e.g.:

```css
@media print, only screen and (min-width: 60em) { }
```
These were immediately detected as print and put at the end of the file without being sorted. I think the first thing to look for should always be (min|max)-(width|height). I also added a function to sort the (min|max)-(width|height) queries with the same values depending on the keyword print.

There is a test file (test7.css) that demonstrates this.

Cheers,
Daniel