RosettaCodeData/Task/Sort-an-integer-array/R/sort-an-integer-array.r

3 lines
42 B
R

nums <- c(2,4,3,1,2)
sorted <- sort(nums)