Enter a comma-separated sequence of integers to sort them.
Sorted Sequence
[{{ sortedSequenceArray.join(", ") }}]
About This Widget
I comosed this little widget in May, 2019. It has been a long time since I
wrote anything substantial in AngularJS. Like most people nowadays, I've moved
on to newer and better technologies now: Vue and React. Plus Angular 6 exists.
Still, a lot of companies have legacy AngularJS code that isn't going anywhere soon.
So AngularJS is still a relevant skill.
I used lodash.debounce in this widget to provide a non-blocking, quick interface even while
it checks the user input and parses it if the user pauses for a second. I used custom
validation for the form element against a custom regular expression. There didn't seem to be
any need to offload the sorting to a web worker on a different thread, so in theory if you give the
interface a huge enough sequence of numbers the interface will block until it is done.
On the development end, I used Browserify to bundle the scripts into a single file.