Fix for sorting order issue with stacking modifiers.