Tag: java arrays sort comparator

Sorting array elements sort() Comparator

September 13, 2011 · 1 min read
The earlier **sort()** example sorts implicitly in natural ascending order. The order can be customized with the overloaded sort() method that takes a [Comparator](http://way2java.com/collections/interface-comparator/) object as parameter.