myfreeweb/cssprefixer — Issue #21: Sorting vendor prefixes
Author: stevenle
Created: 2012-01-31 17:38:07+00:00
State: open

Sorta a nit-pick, but it'd be great if the vendor prefixes could be sorted:

E.g.:

Pre-compiled code:

.foo {
box-shadow: 0 0 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .2);
}

Current, post-compiled code:
```css
.foo {
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .2);
box-shadow: 0 0 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .2);
}
```

Proposed, post-compiled code (with vendor prefixes sorted):
```css
.foo {
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .2);
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .2);
box-shadow: 0 0 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .2);
}
```

I can submit a pull request if preferred -- let me know what you think!