performance improvements for ordered css

@bug W-1778985@
@rev fabbott@
Merging origin/bob/master-pending/ordered-css-perf into master