concrete5/concrete5 — pull request #512 by arcanepain (2012-04-30 09:00:28+00:00)
Title: Events library - priority sort fix

The events library was trying to sort the arrays by checking non-existant 'priority' key (hence always returning '0' because integer comparison would fail, and no actual sorting would take place, despite usort() firing as true).

The extend() method doesn't include array keys when storing, so i've amended to reference the priority setting by array index -- array[5].