You should be able to write your own Base.isless function for the types you 
need to support.

On Wednesday, January 20, 2016 at 7:48:40 AM UTC-8, Ted Fujimoto wrote:
>
> Hi,
>
> In Python, we have this:
>
> >>> sorted([(1, [2,3]), (1,[2,1])])
> [(1, [2, 1]), (1, [2, 3])]
>
> In Julia, this produces a MethodError:
>
> julia> sort([(1, [2,3]), (1,[2,1])])
> ERROR: MethodError: `isless` has no method matching 
> isless(::Array{Int64,1}, ::Array{Int64,1})
>  in isless at tuple.jl:113
>  in sort! at sort.jl:221
>  in sort! at sort.jl:310
>  in sort! at sort.jl:402
>  in sort at sort.jl:413
>
> Is this desirable? Should this be submitted as an issue?
>
> Thanks.
>
>
>

Reply via email to