Skip to content

Commit

Permalink
sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
tochukwualor committed Nov 20, 2024
1 parent 2bfbe12 commit c37264e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nocodb/src/lib/models/Sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export default class Sort {
});
await NocoCache.setList(CacheScope.SORT, [viewId], sortList);
}

console.log({ sortList })
sortList = sortList.filter(i => !!i);
sortList.sort(
(a, b) =>
(a.order != null ? a.order : Infinity) -
Expand Down

0 comments on commit c37264e

Please sign in to comment.