Talk:Sort using a custom comparator: Difference between revisions

Line 14:
It performs the two sorts required (descending length and ascending lexical sort).
What is the complaint?
 
:: I'm not the complainant, but the Ada example does not actually appear to do what the task is asking, namely produce ONE list of strings that are sorted by length AND sorted lexicographically where strings are the same length. The first output result appears to be correct (strings are sorted by length and where strings have the same length they also happen to be sorted lexicographically) but that looks more like chance when I look at the code. Or if "lexicographic" is a default secondary sorting criterion in Ada then this should be spelled out. And it is unclear why there are two output lists. Or at least that what I understand the task to be; maybe I'm kinda misreading this somehow. [[User:Sgeier|Sgeier]] 10:18, 20 September 2007 (MDT)
 
---------------------
Anonymous user