Added StyleSorter.
Merge pull request #3909 from AndreasBackx/master

Added StyleSorter.