in reply to Sorting an array of hashes

Read perlop. The <=> operator is the operator for comparing numbers. Use the cmp operator for comparing strings.