hehheh...
you are the man!
or boy... how ever,
you might make an udf that uses your own udf as base and does make a table with headers.then adding some html-support here and there and we will have colourfull tables...
well, uttleas tables.
but you sort is complex enough to use it as "stdio.h"... I mean it can be used in lots of places from now on.
_________________________
!download
KiXnet