Skip to content

增加博客 nanmu42 #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2020
Merged

增加博客 nanmu42 #87

merged 1 commit into from
Mar 19, 2020

Conversation

nanmu42
Copy link
Contributor

@nanmu42 nanmu42 commented Mar 18, 2020

背景见 #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)"
*/

背景见 #86 .

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

```js
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
Copy link
Member

bigzhu commented Mar 18, 2020

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

@mytharcher mytharcher merged commit 91dc70c into yncoder:master Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants