I know what you mean about the bubble sort, I had to manually write one out for one of my maths modules... tedious indeed. But thanks for the insight. I just wondered to its operation as I wouldn't know how to structure the predicate function depending on how the vl-sort dealt with the returns from the predicate function.