alphabetize
v1.0.6
Published
sort a string alphabetically
Downloads
5
Readme
alphabetize
sort a string alphabeticallly
usage
with node
var alph = require('alphabetize');
console.log('i am a happy string! maybe the happiest?');
//-> 'a am happiest happy i maybe string the'
or from the command line
> alphabetize file.txt
##-> a file of test text
> echo "dogs vs cats" | alphabetize
##-> cats dogs vs
or in the browser
<script src="alphabetize.js"></script>
<script>
var txt = document.getElementById('txt');
txt.textContent = alphabetize(txt.textContent);
</script>
license
MIT