Update javadocs for sort