Hi,
I suspect I'm doing something stupid but no idea what I'm missing.
I create a module .
I create a type in it, DayPriceText
I import Base.isless
I define isless for the type
now in the repl I get
methods(isless)
=>
# 25 methods for generic function "isless":
......
isless(x::DayPriceText,y::DayPriceText) at c:\works\juliaplay\LogParse.jl:16
but
julia> typeof(a1p)
Array{DayPriceText,1}
julia> sort(a1p, lt=CILogParse.isless)
ERROR: `isless` has no method matching isless(::DayPriceText,
::DayPriceText)
in sort! at sort.jl:246
julia> sort(a1p)
ERROR: `isless` has no method matching isless(::DayPriceText,
::DayPriceText)
in sort! at sort.jl:246
I'm sure there's some obvious answer, but I've not idea what.
Thanks for any help
kind regards, John.