Apparently, it's not documented or I missed it.
Here's the link to the documentation and below's the text as an image:
EDIT(17/5): I think too many confused this question to be a comparator question. It is not. The comparator compares between 2 elements. According to that comparison, the list sorted. How? Ascending or Descending?
I'll refine/simplify the question even further: If the comparator decides that element A is smaller than element B. In the sorted list, will element A be located at a lower index than element B?
question from:
https://stackoverflow.com/questions/17641920/whats-the-sort-order-of-javas-collections-sortlist-comparator-small-to-big 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…