title: How to sort ArrayList based on a variables value
body: <p>I have one <code>ArrayList&lt;Users&gt; users_list;</code> and in users i have name, surname, age etc. I want to implement an sorting algorithm that will sort my arraylist based on users age. I searched a lot but found only for sorting arrays.</p>