Fixed ordering under Joomla 3.x

Close #24