I have an efficient sorting routine for arrays that I would like to be applicable to a more general class of arrays. The code below demonstrates the idea:
typ