You need to either sort the data before you hand it to the adapter, or
teach the adapter how to do the sorting.

On Thu, Aug 9, 2012 at 2:48 PM, Wolfgang <[email protected]> wrote:

> Hey guys,
>
> I'm using a ListView that displays a list of ChartInfo. ChartInfo is a
> class I wrote that contains two strings: name, type; and a boolean:
> notification. The ListView is sorting the charts based on name. I would
> prefer that it sorts first based on the boolean, notification, and then
> sorts by the string, name. Can someone point me to a good resource to
> accomplish this or give me some guidance. Here is an example of what I
> would like to accomplish:
> <https://lh3.googleusercontent.com/-fV_JkTnTw_Q/UCQFm2NfFlI/AAAAAAAAAAM/rpH5Nv05NLA/s1600/exampleSorting.png>
>
>
> <https://lh3.googleusercontent.com/-fV_JkTnTw_Q/UCQFm2NfFlI/AAAAAAAAAAM/rpH5Nv05NLA/s1600/exampleSorting.png>
> Thanks,
> -W
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to