Sorting works. Modified array of hashes generation syntax.