Search code examples
androidsdkdeezer

How do I order by artist's name just like A-Z?


I use the Deezer API to request user favourite artists,http://api.deezer.com/user/me/artists,but the results order by id,how can i order by artist's name just like A-Z


Solution

  • Populate all data of artist in ArrayList and just use Collections.sort(artistList); This will work because the items in artistList are String's, and String implements Comparable.