Don't lexicalize them with my $a or my $b if you want to be able to use them in the sort() comparison block or function.