Replace list.sort with collections call for Java7.