Use (...) instead of {...}.
In reply to Re: sort hash values which is an array by moritz in thread sort hash values which is an array by Anonymous Monk