Since sort and sortidx are already varargs functions, we'll need two new versions of these.
Since sort and sortidx are already varargs functions, we'll need two new versions of these.