Fixed collection sorting for Java 6