alphabetize
1.0.6 • Public • Published alphabetize
sort a string alphabeticallly
usage
with node
var alph = require('alphabetize');
console.log('i am a happy string! maybe the happiest?');
or from the command line
> alphabetize file.txt
> echo "dogs vs cats" | alphabetize
or in the browser
<script src="alphabetize.js"></script>
<script>
var txt = document.getElementById('txt');
txt.textContent = alphabetize(txt.textContent);
</script>
license
MIT
Package Sidebar
Install
Weekly Downloads