always sort fields before hashing