title: How to sort an array of ints using a custom comparator?
body: <p>I need to sort an array of ints using a custom comparator, but Java's library doesn't provide a sort function for ints with comparators (comparators can be used only with objects). Is there any easy way to do this?</p>