Search code examples
androidlistviewdirection

ListView change order to opposite direction ANDROID


I have a ListView filled with for loop. The data inside ListView is now in direction

  • 6
  • 5
  • 4
  • 3
  • 2
  • 1

and I want it to be in proper direction:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

Solution

  • Collections.sort is probably what you're up for!

    http://www.vogella.de/blog/2009/08/04/collections-sort-java/