mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -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,
|
||||
});
|
||||
}
|
||||
|
||||
returnData.sort((a, b) => {
|
||||
if (a.name < b.name) { return -1; }
|
||||
if (a.name > b.name) { return 1; }
|
||||
return 0;
|
||||
});
|
||||
|
||||
return returnData;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue