This can't be simply about sort. Perhaps, can you explain more specifically about what you want?
In reply to Re^3: Prototype like sort()? by Marshall in thread Prototype like sort()? by perlancar