in reply to How to sort in perl on the basis of one field.

How are they joined? I guess you use some separator to join then. In this case, you can use (in your sort function) a regular expression to extract the second field, and sort on it.

-- 
Ronald Fischer <ynnor@mm.st>