Sort numbers lexicographically: Difference between revisions

Content deleted Content added
Querfeld (talk | contribs)
→‎BQN: add
Querfeld (talk | contribs)
→‎K: add
Line 980: Line 980:
-22: [-1, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -2, -20, -21, -22, -3, -4, -5, -6, -7, -8, -9, 0, 1]
-22: [-1, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -2, -20, -21, -22, -3, -4, -5, -6, -7, -8, -9, 0, 1]
</pre>
</pre>

=={{header|Ksh}}==
<syntaxhighlight lang="ksh">task: 1+<$1+!:

task 13</syntaxhighlight>
{{out}}
<pre>1 10 11 12 13 2 3 4 5 6 7 8 9</pre>


=={{header|Ksh}}==
=={{header|Ksh}}==
Line 1,019: Line 1,026:


print -- ${arr[*]}</syntaxhighlight>
print -- ${arr[*]}</syntaxhighlight>
{{out}}<pre>
{{out}}
1 10 11 12 13 2 3 4 5 6 7 8 9</pre>
<pre>1 10 11 12 13 2 3 4 5 6 7 8 9</pre>


=={{header|jq}}==
=={{header|jq}}==