RosettaCodeData/Task/Sort-three-variables/AppleScript/sort-three-variables-1.applescript
2023-07-01 13:44:08 -04:00

11 lines
239 B
AppleScript

set x to "lions, tigers, and"
set y to "bears, oh my!"
set z to "(from the \"Wizard of OZ\")"
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}