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

Line 95:
:::::So it'd be ok if "N" comes before "a"? In ASCII it does, alphabetically it does not. Even case-insensitive, it still isn't specified which of e.g. "nN" or "Nn" would be correct. If the tasks indeed just wants a simple ASCII sort then it should just come out and say so - all of the extraneous language in the task description does NOT clarify that. If the task is merely to demonstrate individual character retrieval, then there are simpler ways to demonstrate (e.g, just count the chars, or reverse the string, etc) without opening up the can-of-worms of lexicographical order. If the task has something ''else'' in mind, then it fails to convey it adequately. --[[User:Davbol|Davbol]] ([[User talk:Davbol|talk]]) 18:10, 15 August 2022 (UTC)
:::::: My reading of the task is that ASCII order is *acceptable* but not *required*. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 19:44, 15 August 2022 (UTC)
 
:::::: I agree - looking at the existing samples, it would seem that almost all of them have N before a, a small number have a before A, so the "acceptable but not required" interpretion seems good to me. I see your Lua sample is one of the exceptions, which is fine. I don't think making 99% of the others invalid is worth it. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 20:22, 15 August 2022 (UTC)
3,022

edits