I've solved this problem in the past by using the sort() function of
the Array class, which takes a compare function as its only argument.
Assuming that you are using an array as the data provider of your
grid, you can sort the array and then display the sorted data in the
grid. You'll have to rig
: www.prismix.com
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
LaingSent: 04 May 2005 15:22To:
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Datagridcolumn
sortCompareFunction
I've solved this problem in the past by using the sort() function
Thanks Matt, had grabbed wrong end of the stick on that one.
Much closer now. Noticed that the compare callback for sortItems doesn't get the third array flags argument mentioned in the docs - I was going to see if that would specify ascending or descending order, worked around by having separate
15, 2005
3:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
DataGridColumn sortCompareFunction arguments dua l personality
Thanks Matt,
had grabbed wrong end of the stick on that one.
Much
closer now. Noticed that the compare callback for sortItems doesn't get the
third array
4 matches
Mail list logo