sort some attributes