You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>> sort/compare [1 10 3 ] func[x y][print [x y] case [x > y [1] x < y [-1] true [0]]]
10 3
1 10
3 1
== [1 3 10]
In Red:
>> sort/compare [1 10 3 ] func[x y][print [x y] case [x > y [1] x < y [-1] true [0]]]
10 1
3 10
3 1
== [1 3 10]
But in Rebol3:
>> sort/compare [1 10 3 ] func[x y][print [x y] case [x > y [1] x < y [-1] true [0]]]
10 1
3 1
3 10
== [10 3 1]
Notice the reversed order!
The text was updated successfully, but these errors were encountered:
Oldes
changed the title
SORT/COMPARE is using reversed order when using integer as a result from thee function
SORT/COMPARE is using reversed order when using integer as a result from the function
May 24, 2019
Oldes
added a commit
to Oldes/Rebol3
that referenced
this issue
May 24, 2019
In Rebol2:
In Red:
But in Rebol3:
Notice the reversed order!
The text was updated successfully, but these errors were encountered: