Events library - priority sort fix
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.


Former-commit-id: 13dd8c2d6b3fbc211847d1bbb64bd4b86cbb96f7
a3020/concrete5,KorvinSzanto/concrete5,hissy/concrete5,hissy/concrete5,haeflimi/concrete5,triplei/concrete5-8,olsgreen/concrete5,KorvinSzanto/concrete5,biplobice/concrete5,rikzuiderlicht/concrete5,MrKarlDilkington/concrete5,haeflimi/concrete5,jaromirdalecky/concrete5,hissy/concrete5,acliss19xx/concrete5,deek87/concrete5,jaromirdalecky/concrete5,concrete5/concrete5,triplei/concrete5-8,concrete5/concrete5,concrete5/concrete5,rikzuiderlicht/concrete5,deek87/concrete5,jaromirdalecky/concrete5,mlocati/concrete5,mainio/concrete5,mlocati/concrete5,biplobice/concrete5,olsgreen/concrete5,biplobice/concrete5,KorvinSzanto/concrete5,concrete5/concrete5,olsgreen/concrete5,mlocati/concrete5,haeflimi/concrete5,biplobice/concrete5,mainio/concrete5,deek87/concrete5,mainio/concrete5,haeflimi/concrete5,acliss19xx/concrete5,MrKarlDilkington/concrete5,hissy/concrete5,acliss19xx/concrete5,mlocati/concrete5,rikzuiderlicht/concrete5,jaromirdalecky/concrete5,deek87/concrete5,triplei/concrete5-8,MrKarlDilkington/concrete5,a3020/concrete5