my @sortedkeys = sort { $hash{$a}->{this} cmp $hash{$b}->{this} } keys %hash