Re: clist sorting

From: Date: Thu, 07 Aug 2003 22:58:20 +0000
Subject: Re: clist sorting
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3659@lists.php.net to get a copy of this message
Use PHP? :) - Yes, you're right we shouldn't need to do that. But hey, at least we can :) ----- Original Message ----- From: "Tony Leake" <tleake@ebuyer.com> To: <php-gtk-general@lists.php.net> Sent: Thursday, August 07, 2003 9:47 AM Subject: [PHP-GTK] clist sorting > 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 > > -- > > There are two ways to write error-free programs; only the third one > works. > > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.gtk.general (#3659) next »