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

需要评论可以按时间排序 #352

Open
wdssmq opened this issue Nov 4, 2023 · 2 comments
Open

需要评论可以按时间排序 #352

wdssmq opened this issue Nov 4, 2023 · 2 comments

Comments

@wdssmq
Copy link
Contributor

wdssmq commented Nov 4, 2023

c_system_route.php - zblogcn/zblogphp - GitHub1s
https://github1s.com/zblogcn/zblogphp/blob/HEAD/zb_system/function/c_system_route.php#L1557-L1603

默认是按 ID

@wdssmq
Copy link
Contributor Author

wdssmq commented Nov 4, 2023

还有后台管理的排序

@katteXu
Copy link

katteXu commented Nov 20, 2023

使用sql查询可以自定义时间排序
$zbp->GetCommentList($zbp->db->sql->get()->select($zbp->table['Comment'])->where("=","comm_LogID",$contact_id)->orderBy(array('comm_PostTime' => 'desc')))

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