[Lazarus] Sorting StringGrid by column click

Jesus Reyes jesusrmx at yahoo.com.mx
Fri May 13 20:45:30 CEST 2011



--- El vie 13-may-11, Alexander Klenin <klenin at gmail.com> escribió:

> De: Alexander Klenin <klenin at gmail.com>
> Asunto: Re: [Lazarus] Sorting StringGrid by column click
> A: "Lazarus mailing list" <lazarus at lists.lazarus.freepascal.org>
> Fecha: viernes, 13 de mayo de 2011, 8:43
> On Sat, May 14, 2011 at 00:26, Juha
> (gmail) <juha.manninen62 at gmail.com>
> wrote:
> > Which way is better? I think the Descending-sort code
> is always identical:
> >    if SortOrder=soDescending then
> >      result:=-result;
> > and it could be better if users don't need to worry
> about it.
> 
> Of course.
> 

I think if the user don't need to worry then the built-in string ascending sorting should be fine, in all other cases, i.e. custom sorting, the user needs to take care of doing it correctly, that includes planing the sort order.

Jesus Reyes A.


> 




More information about the Lazarus mailing list