sort(A,dim,?,?,?,?)

sort(v, [alg=,] [by=,] [lt=,] [rev=false])

Variant of sort! that returns a sorted copy of v leaving v itself unmodified. """ sort(v,?,?,?,?)

""" sort(A, dim, [alg=,] [by=,] [lt=,] [rev=false])

Sort a multidimensional array A along the given dimension.

Examples

julia> arr = [5,4,6] 
       sort(arr)
3-element Array{Int64,1}:
 4
 5
 6
julia> arr = [1,2,3,50,22,11,0,0] 
       sort(arr)
8-element Array{Int64,1}:
  0
  0
  1
  2
  3
 11
 22
 50

See Also

find, findfirst, findin, findlast, findmin, findn, findnext, findnz, findprev, rsearch, rsearchindex, searchsorted, searchsortedfirst, searchsortedlast, sort, sort!, sortcols, sortperm, sortperm!,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: