| 368 | } |
| 369 | |
| 370 | Result<std::shared_ptr<Array>> SortIndices(const Array& values, SortOrder order, |
| 371 | ExecContext* ctx) { |
| 372 | ArraySortOptions options(order); |
| 373 | ARROW_ASSIGN_OR_RAISE( |
| 374 | Datum result, CallFunction("array_sort_indices", {Datum(values)}, &options, ctx)); |
| 375 | return result.make_array(); |
| 376 | } |
| 377 |