in reply to Re: hash sort
in thread hash sort

The <=> operator is provided for convenience, to handle the simplest case of comparing two strings.
That's a mistake. The <=> is provided to handle numeric sort. The cmp operator is used for sorting strings (lexicographical sort).

Replies are listed 'Best First'.
Re^3: hash sort
by locked_user sundialsvc4 (Abbot) on May 31, 2017 at 21:13 UTC

    Whups ... well spotted!!   Thank you!