| 377 | } |
| 378 | |
| 379 | void stableGetPermutation(const Block & block, const SortDescription & description, IColumn::Permutation & out_permutation) |
| 380 | { |
| 381 | if (block.empty()) |
| 382 | return; |
| 383 | |
| 384 | getBlockSortPermutationImpl(block, description, IColumn::PermutationSortStability::Stable, 0, out_permutation); |
| 385 | |
| 386 | #ifndef NDEBUG |
| 387 | checkSortedWithPermutation(block, description, 0, out_permutation); |
| 388 | #endif |
| 389 | } |
| 390 | |
| 391 | bool isAlreadySorted(const Block & block, const SortDescription & description) |
| 392 | { |
no test coverage detected