https://github.com/ajpalkovic/SublimePl ... sortCss.py
I've always found organizing CSS files to be a pain, and the best trick I've had was to always keep my CSS rules in sorted order so they are semi easy/logical to find. But, I hate keeping it ordered.
So, I created a plugin that sorts all of the CSS rules in a file. Additionally, I added a small onSave event, so that every time you save the file it automatically sorts the css rules! That can be disabled by setting sort_css_on_save to false. It is true by default.
1. The new version of the plugin sorts the first continuous block of rules in each selector. This is really only a limitation for scss. If you put css rules after a nested selector, they won't be sorted.
2. If you find bugs, please post the css snippet and I'll fix it.