We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submitted by: Oldes
In Rebol2:
>> 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!
Imported from: metaeducation#2376
Oldes added a commit to Oldes/Rebol3 that referenced this issue on May 24, 2019: FIX: SORT/COMPARE is using reversed order when using integer as a res…
Hostilefork added Ren.important and Type.bug on May 28, 2019
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Submitted by: Oldes
In Rebol2:
In Red:
But in Rebol3:
Notice the reversed order!
Imported from: metaeducation#2376
Comments:
The text was updated successfully, but these errors were encountered: