[Lazarus] Sorting StringGrid by column click
Alexander Klenin
klenin at gmail.com
Thu May 12 14:45:01 CEST 2011
On Thu, May 12, 2011 at 23:37, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> Alexander Klenin schrieb:
>
>> BTW, I agree with the commenter in Mantis who said that sorting type
>> is a required
>> requisite. Sorting numeric columns as strings is not merely useless, but
>> subtly
>> dangerous, since it may deceive user with incorrect results.
>
> A CustomSort method would be the way to go.
>
That is true (although, of course, it should be an event, not method),
but at least numeric sort should IMHO be supported by default,
since otherwise there is a high probability of user confusion.
--
Alexander S. Klenin
More information about the Lazarus
mailing list