On 12/1/12, Avishai <[email protected]> wrote: > Lazarus support for Sorting is completely inadequate. ....
At the risk of repeating myself or someone else: Every component that has a (string-based) sorting routine might also have a CustomSort like: TBasicComponent.CustomSort(const CompareFunc: TCompareFunc); where type TCompareFunc = function(Item1, Item2: Pointer): Integer; Or perhaps a property of type TCompareFunc that controls the default sort routine? The challenge (for Avishai's point of view) would then be to supply appropriate compare functions for different languages and situations. The compare function also solves the "do i want case-sensitivity" issue. Just my 2 cents... Bart -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
