Sort the attributes in multiple steps: first sort by featuretype, then by name