Deal with idx = idx in sort, tidy help docs