There have been discussions about whether a range can substitute in most cases where a vector is required.
julia> sort(1:3) 1:3 julia> sort(1:3, rev=true) ERROR: indexed assignment not defined for UnitRange{Int64} in sort! at sort.jl:222 in sort! at sort.jl:292 in sort! at sort.jl:402 in sort at sort.jl:413 julia> sort(collect(1:3), rev=true) 3-element Array{Int64,1}: 3 2 1 I guess it's unclear whether sort(1:3, rev=true) should return 3:-1:1 or [3,2,1] or be an error as it currently is. Any thoughts?