`List#sort` method is introduced on Java 8; cannot be used on Java 6 or 7