Skip to content

Commit

Permalink
Merge pull request #15996 from primefaces/issue-15550
Browse files Browse the repository at this point in the history
Fixed #15550 - Table | Custom sort in table not working
  • Loading branch information
cetincakiroglu authored Jul 11, 2024
2 parents f5f8457 + 23bed7b commit 43e63d7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1555,9 +1555,9 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
this.restoringSort = false;
}

if (this.lazy) {
this.onLazyLoad.emit(this.createLazyLoadMetadata());
} else if (this.value) {
this.lazy && this.onLazyLoad.emit(this.createLazyLoadMetadata());

if (this.value) {
if (this.customSort) {
this.sortFunction.emit({
data: this.value,
Expand Down Expand Up @@ -1605,9 +1605,8 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
}

if (this.multiSortMeta) {
if (this.lazy) {
this.onLazyLoad.emit(this.createLazyLoadMetadata());
} else if (this.value) {
this.lazy && this.onLazyLoad.emit(this.createLazyLoadMetadata());
if (this.value) {
if (this.customSort) {
this.sortFunction.emit({
data: this.value,
Expand Down

0 comments on commit 43e63d7

Please sign in to comment.