Sorts attributes in detail view by type