in reply to sorting scientific numbers

did you meant ... ?
sort {$a<=>$b} ^--- $ here
I supposse this is not the problem, but your OP doesn't contain enough information: post your code!