Browse Source

fix(nocodb): display value column order in new view (#8808)

pull/8819/head
Ramesh Mane 5 months ago committed by GitHub
parent
commit
4d6e3ff796
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      packages/nocodb/src/models/View.ts

5
packages/nocodb/src/models/View.ts

@ -1809,6 +1809,11 @@ export default class View implements ViewType {
defaultOrder
);
});
} else if (!copyFromView) {
// sort by display value first, then other columns
columns.sort((a, b) => {
return +b.pv - +a.pv;
});
}
let order = 1;

Loading…
Cancel
Save