按字母顺序排列按字母顺序对字符串进行排序用法带节点:
var alph = require('alphabetize');
console.log(alph('i am a happy string! maybe the happiest?'));
// -> 'a am happiest happy i maybe string the'
或者从命令行使用:
alphabetize file.txt
// -> a file of test text
或者在浏览器中:
暂无评论