mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
⚡ Sort languages alphabetically on DeepL Node
This commit is contained in:
parent
07a9108e46
commit
731ae84eee
|
@ -89,6 +89,13 @@ export class DeepL implements INodeType {
|
||||||
value: language.language,
|
value: language.language,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
returnData.sort((a, b) => {
|
||||||
|
if (a.name < b.name) { return -1; }
|
||||||
|
if (a.name > b.name) { return 1; }
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
|
||||||
return returnData;
|
return returnData;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue