We will sort this hash:
Liz => Davidson
Catherine => Mills
Tom => Mills
James => Kirk
Yonge => Yu
Jim => Mills
Deb => Lee
Bill => Graham
Lee => Hutchinson

First by length of last name and then by first name alphabetically:

@sorted = sort{length($a->[1]) <=> length ($b->[1])} sort{$a->[0] cmp $b->[0]} map{ [$_,$names{$_}] } keys %names;

Yu, Yonge
Lee, Deb
Kirk, James
Mills, Catherine
Mills, Jim
Mills, Tom
Graham, Bill
Davidson, Liz
Hutchinson, Lee