Skip to content

Commit ad6903e

Browse files
ordering: deprecate the order keyword for ordering-related functions.
1 parent 8bde376 commit ad6903e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/ordering.jl

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ ordtype (o::By, vs::AbstractArray) = try typeof(o.by(vs[1])) catc
7878
ordtype{T}(o::Ordering, vs::AbstractArray{T}) = T
7979

8080
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.")
8183
o = (lt===isless) & (by===identity) ? order :
8284
(lt===isless) & (by!==identity) ? By(by) :
8385
(lt!==isless) & (by===identity) ? Lt(lt) :

0 commit comments

Comments
 (0)