Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix sorting

Fendy Heryantoeb3eb5a5e5af
diff --git a/packages/nocodb/tests/unit/rest/tests/dataApiV3/get-list.test.ts b/packages/nocodb/tests/unit/rest/tests/dataApiV3/get-list.test.ts
index 21deff1bc5..3dc03a02c8 100644
--- a/packages/nocodb/tests/unit/rest/tests/dataApiV3/get-list.test.ts
+++ b/packages/nocodb/tests/unit/rest/tests/dataApiV3/get-list.test.ts
@@ -216,11 +216,11 @@ describe('dataApiV3', () => {
[],
[
'Almirante Brown',
+ 'Avellaneda',
+ 'Baha Blanca',
'Crdoba',
'Escobar',
'Ezeiza',
- 'Avellaneda',
- 'Baha Blanca',
],
[],
[],
@@ -238,8 +238,8 @@ describe('dataApiV3', () => {
expect(records.body.records.length).to.equal(10);
// extract Lookup column
- const lookupData = records.body.records.map(
- (record: any) => record.fields['Lookup'],
+ const lookupData = records.body.records.map((record: any) =>
+ record.fields['Lookup'].sort(),
);
expect(lookupData).to.deep.equal(expectedRecords);
});