Renamed sorted_by_idx to _sorted_by_idx