in reply to Comparison of alphanumeric strings

the problem is that the value can be number,string or alphanumeric

Maybe you want Sort::Naturally?   (I figure you're not satisfied with the results you'd get from string sort...)