Determine the sorting key for each of the fields and use quick sort? If the field you’re sorting by is a name for example then use alphabetic order. Sounds like a generic sorting by comparison problem and doesn’t require any specific library.
> On Jan 3, 2018, at 10:09 PM, Dennis <de...@avidsoft.com.hk> wrote: > > I have a list of records (each with a few fields). > I want to let users display this list of records in ascending orders of any > record field. > Is there any existing units/library I can use? > > Thanks in advance. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal