Browse Source

feat: load tables list in alphabetic order (re-submission)

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/764/head
Raju Udava 3 years ago
parent
commit
34abf0de30
  1. 4
      packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

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

@ -4585,7 +4585,9 @@ export default class NcMetaMgr {
result[d.title].disabled[d.role] = !!d.disabled; 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; break;
case 'view': case 'view':

Loading…
Cancel
Save