Skip to content

Commit 3405945

Browse files
committed
Fix: Broken sorting behaviour
1 parent 4933101 commit 3405945

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp_tables/composite_table.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -898,9 +898,10 @@ void CompositeTable::sort(int columnIndex, Qt::SortOrder order)
898898
assert(columnIndex >= 0 && columnIndex < columns.size());
899899
const CompositeColumn* const column = columns.at(columnIndex);
900900

901+
if (bufferInitialized) updateBuffer(nullptr, column); // Sort column might need to be updated if hidden
902+
901903
const SortingPass previousSort = currentSorting;
902904
currentSorting = {column, order};
903-
if (bufferInitialized) updateBuffer(); // Sort column might need to be updated if hidden
904905

905906
performSort(previousSort, true);
906907
}

0 commit comments

Comments
 (0)