Updated hash_transform to transform: allows sorting on hashes and arrays, multiple fields to sort upon, sorting by data,numeric or string