fix sorting bug (#17769)

* fix sorting bug

* comments
This commit is contained in:
Alan Ren
2021-11-30 17:11:57 -08:00
committed by GitHub
parent 7e17bfb6ec
commit 1006652a31
3 changed files with 73 additions and 17 deletions

View File

@@ -491,7 +491,7 @@ export abstract class GridTableBase<T> extends Disposable implements IView {
(offset, count) => { return this.loadData(offset, count); },
undefined,
undefined,
(data: ICellValue) => { return data?.displayValue; },
(data: ICellValue) => { return data.isNull ? undefined : data?.displayValue; },
{
inMemoryDataProcessing: this.options.inMemoryDataProcessing,
inMemoryDataCountThreshold: this.options.inMemoryDataCountThreshold