>Hi!
>
>Do you want to discuss this topic from the sciense point of view? Here we do not used ANY assumption about distribution of record. Anyway, a loop and a lot of statements in VFP FAR slower than ASORT() for ANY distribution, as far as I know, just because VFP commands are done by pure interpreter, when ASORT() is a C++ code done by processor. Maybe, for little number of elements VFP routine can be more quick, however, with large number of elements it is not comparable.
With a large number of elements you can't use arrays anyway. That's where I'd rather stuff them into cursor and index it. At a few hundred thousand records this is pretty much the fastest option.