Change templates sort order