yncoder / yncoder.github.io

Yunnan Coder Community
https://yncoder.github.io/
92 stars 18 forks source link

增加博客 nanmu42 #87

Closed nanmu42 closed 4 years ago

nanmu42 commented 4 years ago

背景见 #86 .

按要求对顺序进行了重排。

let s = `闭门造轮子 (Jekyll)
丁亮的个人博客 (Solo)
一个博客 (Jekyll)
BigZhu的窝 (自建)
回家看动画 (GithubIssues)
Liao Yifan's Strive (Hexo)
Vanessa (Pipe)
programming4fun (Tumblr)
gc87 (oschina)
nanmu42 (Hugo)`

let localeCompare = (a, b) => a.localeCompare(b)

s.split('\n').sort(localeCompare).join('\n')

/* 输出:
"闭门造轮子 (Jekyll)
丁亮的个人博客 (Solo)
回家看动画 (GithubIssues)
一个博客 (Jekyll)
BigZhu的窝 (自建)
gc87 (oschina)
Liao Yifan's Strive (Hexo)
nanmu42 (Hugo)
programming4fun (Tumblr)
Vanessa (Pipe)"
*/
bigzhu commented 4 years ago

哎呀, 我的应该改下, 换了成了 Hugo 都没改.