comment trier les lignes en javascript
const sortLines = (string) => {
const newText = string
.split(/\r?\n/)
.sort()
.join("\n");
return newText;
};
mrmalik610