Project

General

Profile

Bug #1274

Updated by John Abbott about 5 years ago

In CoCoA5 the *@SortBy@* and *@SortedBy@* functions sometimes give wrong answers!

Here is an example:
<pre>
L := [8, 2, 9, 10, 15, 3, 1, 14, 5, 11, 13, 4, 16, 17, 6, 12, 7];
SortedBy(L, func(a,b) return a<b; endfunc);
[1, 2, 4, 5, 6, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
</pre>

Ouch!

Note: reported by Julian Danner (Passau)

Back