[Gambas-user] Listview sorting question

Benoit Minisini gambas at ...1...
Wed Apr 2 03:43:58 CEST 2008


On mercredi 2 avril 2008, Robert Rowe wrote:
> I have a listview with several items and the Sorted property is set to
> True. One of the items starts with three dashes. The sort function
> appears to ignore these characters and positions the item as if they
> were not in the string. It's important for this item to be at the top of
> the list. A dash has a lower ASCII value so it would sort higher if it
> wasn't being ignored.
>
> Is there a way to make the listview not ignore non-alpha characters when
> sorting?
>
> Robert Rowe
>

You must answer to the Compare event: see the documentation in the wiki for 
the details.

-- 
Benoit Minisini




More information about the User mailing list