title: Listview in alphabetical order
body: <p>I have a listview that gets facebook friends, and i would like to sort the names in alphabetical order, but im not very sure how to go on and do this.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>@Override
          public void onComplete(List&lt;Profile&gt; friends) {
              // populate list
              List&lt;String&gt; values = new ArrayList&lt;String&gt;();
              for (Profile profile : friends) {
                  //profile.getInstalled();
                  values.add(profile.getName());
              }
              ArrayAdapter&lt;String&gt; friendsListAdapter = new ArrayAdapter&lt;String&gt;(getApplicationContext(), R.layout.list_items2, values);
              mFriendsList.setAdapter(friendsListAdapter);
  
          }
      };
  </code></pre>
  
  <p>I have looked around for solutions but didn't find for arraydapter.</p>