Text sorting – a simple JavaScript app
The objective is to sort lines of text. Building a simple interface for it will improve your basic skills and knowledge of JavaScript.
Basic requirements
- A textarea where the user enters or pastes lines of text.
- A button that sorts the lines alphabetically.
- A button that shuffles the lines.
Future improvements
- An option to ignore whitespace at the start of the lines.
- Files:
- the user can drop a file onto the app
- the file’s contents fill the textarea
- A button that restores the original order of the lines.