Sort disjoint sublist: Difference between revisions
Content deleted Content added
jq |
→{{header|jq}}: simplify |
||
Line 769:
| (indices|unique) as $ix # "unique" sorts
# Set $sorted to the sorted array of values at $ix:
| ([ $values[
| reduce range(0; $values|length) as $i
([];
|