Browse Source

feat: load tables list in alphabetic order

re #737

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/764/head
Pranav C 3 years ago
parent
commit
489db05324
  1. 4
      packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

4
packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

@ -4568,7 +4568,9 @@ export default class NcMetaMgr {
result[d.title].disabled[d.role] = !!d.disabled;
}
return Object.values(result);
return Object.values(result)?.sort((a: any, b: any) =>
(a?._tn || a?.tn)?.localeCompare(b?._tn || b?.tn)
);
}
break;
case 'view':

Loading…
Cancel
Save