I forgot about your last sentence by the time I got finished (descending order keys), so you'll be able to apply the simpler approach:
On Feb 9, 10:26 pm, Bob Kerns <r...@acm.org> wrote: > But you can iterate over the keys you get back with JSONObject.keys(), > and store the keys in a TreeSet, sorted according to your preferences, > or in an ArrayList, and call Collections.sort() on it, and then > iterate over the result. That's a simple, robust solution, if the > client knows what order the keys should be in. > On Feb 9, 7:49 pm, Kasra Rahjerdi <johncena4presid...@gmail.com> > wrote: > > Is this a common issue? Is there any way to sort my JSONObject? (My > > keys are all numbers in descending order). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en