Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to reverse sort lines in javascript

const sortLinesReverseSENS = (string) => {
  const newText = string
    .split(/
?
/)
    .sort()
    .reverse()
    .join("
");
  
  return newText;
};
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #reverse #sort #lines #javascript
ADD COMMENT
Topic
Name
5+8 =