JSFiddle - React, Tailwind, and code Playground

HTML

<button id="sortButton">Sort</button><button id="unsortButton">Unsort</button>

<div id="textarea">Print this page to PDF for the complete set of vectors. Or to use on the desktop, install FontAwesome.otf and copy and paste the icons (not the unicode) directly into your designs. </div>

JavaScript

var T = document.getElementById('textarea'),
    O = T.innerHTML;

function sort() {
    T.innerHTML = T.innerHTML.split(" ").sort().join(" ");
}


function unsort() {
    textarea.innerHTML = O;
}

document
  .getElementById("sortButton")
  .addEventListener("click", sort, false);

document
  .getElementById("unsortButton")
  .addEventListener("click", unsort, false);