Skip to content

brq1/Sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Sorter version 3

  1. This is simple project with sorting data: alphabetically, with length text and randomly, with data input from user.
  2. Using the function of dividing text and joining in an array:
function takeWords(){
	StringText = textArea.value;
	words = StringText.split("\n");
}

function sortInTurn(){
	takeWords();
	listEl.innerHTML = words.join("<br>");
}

Preview

https://brq1.github.io/Sorter/src

Usage

  1. Enter a data in textarea. The input text must be entered 1 word in 1 line.
  2. Next you select function to sort.
  3. It is possible to add text at any time

=======