Jump to content

Talk:Sort the letters of string in alphabetical order: Difference between revisions

Line 39:
 
::: <pedantic-mode: on;> '''COMPLETELY''' immaterial. Neither is an alphabet. True, the task doesn't specify which alphabet to use, but neither of those are one. As for not using a sort, the task '''specifically requires''' writing a routine to '''sort'''. In what way could you interpret that to mean you don't need to sort? Yes, yes, I agree, you don't need to sort to get the end result required by the task, but it is pretty clear "Write a sort function, don't just use a built-in" requires there to be some kind of sort involved. <pedantic-mode: off;> --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 14:59, 26 July 2021 (UTC)
 
::::: I'll see your pedantic and raise you one. Like most I misread it. The task states you must create a routine, but does not stipulate that cannot be a one-liner to some builtin or other. Or even what the output should be. Not that I much care ;-) --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 17:18, 26 July 2021 (UTC)
 
:::: The task title and description are currently at odds with each other. The former says sort in alphabetical order and the latter in lexicographical order. Given that we have example strings containing both upper and lower case letters and non-letters, lexicographical order seems the most appropriate to me and I therefore agree with Paddy3118's suggested title change above. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 15:48, 26 July 2021 (UTC)
 
::::: Oh what brittle minds we have. It wuz '''you''' [https://rosettacode.org/mw/index.php?title=Sort_the_letters_of_string_in_alphabetical_order&type=revision&diff=338579&oldid=338576 wot introduced that discrepancy]... ;-) --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 17:18, 26 July 2021 (UTC)
 
==For this task it is not necessary to perform a sort!==
7,813

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.