@keysByValue = sort { $clients{$a} cmp $clients {$b} } keys %clients;