title: Sorting List<> by numeric value
body: <p>I've got a <code>public List&lt;FriendProfile&gt; friends = new ArrayList&lt;FriendProfile&gt;();</code>. I initialize the friends list by reading the information from the server. The FriendProfile object contains a int called <code>private int userPosition;</code> </p>
  
  <p>Once the friends list has been initialized, I would like to sort the friends list by having the FriendProfile object with the highest <code>userPosition</code> at index 0 of the list and then sort by accordingly, index 1 with the second highest <code>userPosition</code> ...</p>
  
  <p>I guess I could write an sorting algorithm, yet I'm looking for prewritten code (maybe the JDK has some methods to offer?)</p>
  
  <p>Help is appreciated!</p>