in reply to Re^3: the variable is lostin thread the variable is lost
FWIW, using $a and $b outside of sort is always a mistake