--- In flexcoders@yahoogroups.com, "Maciek Sakrejda" <msakre...@...> 
wrote:
>
> Ok, so it looks like a (reasonably simple) way to do this is to set 
the dataProvider of the CategoryAxis to originalDataProvider.toArray
().reverse() on every update of originalDataProvider. A 
ListCollectionView to wrap originalDataProvider would have been 
cleaner, but there doesn't seem to be a simple way to say "sort the 
opposite of how this is sorted by default". I tried to extend 
ListCollectionView into a ReverseListCollectionView by overriding 
getItemAt() and itemIndex(), but it looks like CategoryAxis actually 
uses IViewCursor, and I would have had to write my own. I think this 
solution works reasonably well for now.

This might noy be "by default", but had you seen this thread:
http://tech.groups.yahoo.com/group/flexcoders/message/121765 ?

You might be able to just create a sort like that and set it to be 
the default sort of your ListCollectionView.

HTH;

Amy

Reply via email to