Default Shortcode sorting.

By default, shortcodes are alphabetically sorted by name in both the modal and the table page.

Also fixed some PHP notices pertaining to attribute labels in the modal
.