We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
order
1 parent 8bde376 commit ad6903eCopy full SHA for ad6903e
base/ordering.jl
@@ -78,6 +78,8 @@ ordtype (o::By, vs::AbstractArray) = try typeof(o.by(vs[1])) catc
78
ordtype{T}(o::Ordering, vs::AbstractArray{T}) = T
79
80
function ord(lt::Function, by::Function, rev::Bool, order::Ordering=Forward)
81
+ order == Forward ||
82
+ Base.warn_once("the `order` keyword is deprecated, use `lt`, `by` and `rev` instead.")
83
o = (lt===isless) & (by===identity) ? order :
84
(lt===isless) & (by!==identity) ? By(by) :
85
(lt!==isless) & (by===identity) ? Lt(lt) :
0 commit comments