Group the hashes by account