Re: Routine for organising [ad-hoc] data, splice_sort()
- Posted by Aidan Bindoff <abindoff at ONE.NET.AU> Jan 24, 2001
- 484 views
Sorry to post again on this but I felt it useful to point out that this is another of those "sort by nth element" routines discussed earlier, and I've just realised that it doesn't really have an advantage over custom_sort or the method Graeme described on the 14th. In fact, I would guess Graeme's modified sort() would be considerably faster. I did benchmark against custom_sort and it was slightly faster (not as convenient though), even after doing the obvious optimisations (which didn't suit my original use). Regards, Aidan