[Lazarus] Lazarus support for Sorting is completely inadequate.

Bart bartjunk64 at gmail.com
Tue Dec 4 11:53:33 CET 2012


On 12/1/12, Avishai <avishai.gore at gmail.com> 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




More information about the Lazarus mailing list