ZF-5435: offsetSetStylesheet: not correct order in headLink view helper
in the headlink view helper one can use the offsetSetStylesheet method to set certain indexes of the inside ArrayObject-type container,
but when you want to put out the stylesheets the order of output is not the one defined by index, but by insertion time order.
You can fix this by adding
into the toString method of Zend/View/Helper/HeadLink but I don't know, if this is the best solution or if the issue lies a bit more under the surface (maybe the iterator of the ArrayObject doesn't work as expected.
One can help oneself by calling asort before calling the toString-method in the view script
$this->headStyle()->getContainer()->asort(); echo $this->headStyle();
The same should apply to headScript, headMeta and headStyle