add sort order to templates and styles

The templates and styles currently do not have a sort order and this makes finding them difficult if there are many of them...

Please review.