Sort entities in the application tree by their ID

Keeps entities in the jsgui application tree sorted by their lowercase ID. Means elements keep the same position through page refreshes.

Would have preferred to sort by entity name but it isn't always available to the model. (If it _is_ accessible it will be very easy to switch - just change the sortKey var.)