mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge branch 'better-priority-queue' of github.com:yandex/ClickHouse into better-priority-queue
This commit is contained in:
commit
d50609d44c
@ -178,7 +178,7 @@ struct SimpleSortCursor : SortCursorHelper<SimpleSortCursor>
|
||||
int direction = desc.direction;
|
||||
int nulls_direction = desc.nulls_direction;
|
||||
int res = impl->sort_columns[0]->compareAt(lhs_pos, rhs_pos, *(rhs.impl->sort_columns[0]), nulls_direction);
|
||||
return (res > 0) ^ (direction > 0);
|
||||
return (res > 0) == (direction > 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user