Skip to content
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

能添加一个排序字段不,如图,按照升序或者降序排列 #1

Closed
fhefh2015 opened this issue May 3, 2020 · 1 comment

Comments

@fhefh2015
Copy link

image

@poozhu
Copy link
Owner

poozhu commented May 5, 2020

https://github.com/ZY2071/JueJin-Search/blob/c6d3f5819520936e4043e9b9b5a016b59ed304db/index.js#L20
我目前默认了按发布时间排序,需要其他方式的排序的话,新增一个排序的函数,然后直接使用新的排序函数即可,也可以通过传递参数来切换为另外的排序函数

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

No branches or pull requests

2 participants