Main /
SortByN-thFieldCategories: GEN rds-hosted Library Routines Sort by n-th field 1K Author: CChris Date: May 3 2006 http://www.rapideuphoria.com/by_field.zip V1.0 Provides two functions: sort_by_nth_field(source, field_number, direction) and safe_sort_by_nth_field(source, field_number, direction). Borh sort a sequence of records (source) by their (field_number)-th field in (direction) order. The slower safe_ version can cope when the sorting field doesn't exist. A test program is provided too. May 3: Test program repaired and augmented. |