You could pass your sort routine as a coderef.
Dave
In reply to Re: Sorting question by davido in thread Sorting question by m.y