sort the array in place so single class cascades from ancestors work
Merge pull request #575 from amro/fix_single_class_cascading_selectors

Sort the array in place so single class cascades from ancestors work