Is there any reason why I should prefer Collections.sort(list)
method over simply calling the list.sort()
? Internally Collections.sort
merely calls the sort
method of the List
class anyway.
It's just surprising that almost everyone is telling me to use Collections.sort
. Why?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…