Sort the letters of string in alphabetical order: Difference between revisions
Content added Content deleted
Line 413: | Line 413: | ||
do |
do |
||
create l_list.make_from_iterable (s) -- Add & Auto-sort string by chars |
create l_list.make_from_iterable (s) -- Add & Auto-sort string by chars |
||
create Result.make_empty |
create Result.make_empty -- Create the Result STRING |
||
⟳ c:l_list ¦ Result.append_character (c) ⟲ -- Populate it with the sorted chars |
⟳ c:l_list ¦ Result.append_character (c) ⟲ -- Populate it with the sorted chars |
||
Result.adjust |
Result.adjust -- Remove the leading white space |
||
end |
end |
||