improved zindex performance by only sorting on collections with enableZindex === true (by default false except for a stage)