Fix javascript display order

When you save and redisplay javascript on an element, the javascript
actions appear in a different order.

This fix adds an ORDER clause to the query to ensure that the records
are received in the same sequence as saved.
Merge pull request #1058 from Sophist-UK/fix_admin_element_javascript_display_order

Fix javascript display order