Skip to content

Commit d02eccc

Browse files
committed
Update sort.jl
1 parent 44445f6 commit d02eccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sort/sort.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ end
88
function Base.sort!(ds::Dataset, cols::MultiColumnIndex; alg = HeapSortAlg(), rev = false, mapformats::Bool = true, stable = true, threads = true)
99
_check_consistency(ds)
1010
colsidx = index(ds)[cols]
11-
if length(rev) == 1
11+
if rev isa Bool
1212
revs = repeat([rev], length(colsidx))
1313
else
1414
revs = rev
@@ -67,7 +67,7 @@ function Base.sort(ds::Dataset, cols::MultiColumnIndex; alg = HeapSortAlg(), rev
6767
isempty(ds) && return copy(ds)
6868
_check_consistency(ds)
6969
colsidx = index(ds)[cols]
70-
if length(rev) == 1
70+
if rev isa Bool
7171
revs = repeat([rev], length(colsidx))
7272
else
7373
revs = rev

0 commit comments

Comments
 (0)