Fix global query order

Sometimes an order of media queries is broken by this post-processor. This should be fixed by placing all media queries at last of processed CSS.