RosettaCodeData/Task/Sort-three-variables/AppleScript/sort-three-variables-2.appl...

12 lines
184 B
AppleScript

set x to 77444
set y to -12
set z to 0
if (x > y) then set {x, y} to {y, x}
if (y > z) then
set {y, z} to {z, y}
if (x > y) then set {x, y} to {y, x}
end if
return {x, y, z}