Talk:Sort using a custom comparator: Difference between revisions

(→‎Ada example incorrect: Still, unfortunately.)
 
(11 intermediate revisions by 5 users not shown)
Line 24:
---------------------
Unfortunately it is still incorrect. See the C# discussion below for more info, as the C# (used to) fail for the same reason, Thanks. --[[User:Paddy3118|Paddy3118]] 06:43, 20 November 2009 (UTC)
 
---------------------
I've created a new solution to the task, but it's not based on the old code at all. Should I add mine to the code that's there now or replace the incorrect code? --[[User:Ezephyr|Ezephyr]] 21:05, 24 April 2010 (PST)
 
:For the moment, I'm just going to add the code that I wrote to the end of the Ada section. If no one objects within a couple days... I'll switch the order or something. --[[User:Ezephyr|Ezephyr]] 21:05, 24 April 2010 (PST)
:So it's been a couple five days. I'm 100% positive that my code is correct and solves the stated problem description, so I'm going to go ahead and remove the tag and the broken code. --[[User:Ezephyr|Ezephyr]] 23:16, 29 April 2010 (PST)
 
 
Output is incorrect. Set is before set, but has to be first set and then Set. --[[User:GetBreak|GetBreak]] 19:20, 20 August 2018 (EET)
 
:Um. Just to be clear, you ''did'' read the last line of the task description? The one that states: <blockquote>'''Note:''' Lexicographic order is case-insensitive.</blockquote> It doesn't say anything about sort stability though, or the ordering of words that compare the same, so Set, set is just as valid as set, Set. The AWK and C entries do look a little suspect though.
 
:BTW, when you mark an entry incorrect, the correct ''(heh)'' format is:
 
<nowiki>{{incorrect|Language name|Short explanation of what is wrong}}</nowiki>
 
:If you don't follow that format it becomes difficult to figure out what the problem is and problematic entries won't be reported on the "examples needing attention" page. Thanks. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 17:36, 20 August 2018 (UTC)
 
 
::: I fixed the AWK version (for GAWK, not sure about TAWK as I don't have access to that) as per your observations re sort stability. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 18:46, 20 August 2018 (UTC)
 
== Some examples remain incorrect ==
Line 41 ⟶ 61:
Your output file would have headings for only ''Unsorted'' and ''Sorted'' where strings 'sorted' and 'sample' should be switched; as should 'to' and 'be'. --[[User:Paddy3118|Paddy3118]] 19:32, 19 November 2009 (UTC)
:Yep, I missed that part. It should be fixed now. --[[User:Ronw|Ronw]] 14:17, 19 November 2009 (PST)
:: Ta! :-) &nbsp; &nbsp; --[[User:Paddy3118|Paddy3118]] 06:53, 20 November 2009 (UTC)
3,022

edits