Re: Sorting simplelist?
- From: "Ross McFarland" <rwmcfa1 neces com>
- To: "muppet" <scott asofyet org>
- Cc: gtk-perl-list gnome org
- Subject: Re: Sorting simplelist?
- Date: Fri, 5 Dec 2003 12:50:37 -0500 (EST)
muppet said:
Art?ras ?lajus said:
Anyone knows how i could sort SimpleList?
indeed -- exactly as you would a normal TreeView.
http://lists.gnome.org/archives/gtk-perl-list/2003-November/msg00202.html
since $sl->{data} is (for all intents and purposes) a perl array you could,
though i'm not suggesting it really, do the following
@{$sl->{data}} = sort { # sort func } @{$sl->{data}};
i do think you're probably better off sticking to the suggestion of muppet as
it would be vastly more efficent.
-rm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]