Sort the letters of string in alphabetical order: Difference between revisions
Sort the letters of string in alphabetical order (view source)
Revision as of 11:10, 8 February 2024
, 3 months ago→{{header|Wren}}: Changed to Wren S/H
(→{{header|Quackery}}: fixed to comply with task requirements) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 1,441:
=={{header|Wren}}==
Well, we'll write a function for a bubble sort which we don't have in Wren-sort because it's normally much slower than the other methods. However, it's fast enough here.
<syntaxhighlight lang="
var chars = s.toList
var n = chars.count
|