Re: clist sorting
| From: | Aaron | Date: | Thu, 07 Aug 2003 12:35:44 +0000 |
| Subject: | Re: clist sorting | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3661@lists.php.net to get a copy of this message | ||
The method "set_compare_func" allows you to write the comparison function. Andrei said he was planning on adding it sometime, I don't know if it will be before GTK 2 is implemented though :/
Tony Leake wrote:
When I sort a clist using the following code: $clist->set_sort_type(GTK_SORT_DESCENDING); $clist->set_sort_column($column); $clist->sort(); it sorts a list of integers (0-10) as follows 9 8 7 6 5 4 3 2 10 1 0 I guess it thinks they're strings, how can I fix this thanks Tony