kinda like this
var a:ArrayCollection = new ArrayCollection();
var field:SortField = new SortField(/*place how u wnat the sort*/)
var sort:Sort = new Sort();
sort.fields=field;
a.sort=//ur stuff
a.refresh();
- Original Message
From: CK <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, January 19, 2008 4:27:43 PM
Subject: [flexcoders] Sorting DataGrid Header Text
Hi,
Now I've the test data displayed, how does one go about setting the
default header order? So when the grid is first rendered it sorts:
Title
Actors
Directors
Genre
Plot
Rating
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping