performance improvements for ordered css

@bug W-1778985@
@rev fabbott@
Merging origin/bob/patch-pending/order-css-perf into 186/patch