Skip to content

Commit ce9eb68

Browse files
author
潘朝思
committed
fix: update daily order
1 parent 9b74e32 commit ce9eb68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/consts/sql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const (
55
GetDailyProblemSQL = `select * from problems where id in
66
(select problem_id from user_problems
77
where user_id = ? and picked = true and finished = false and deleted_at is null)
8-
order by type desc`
8+
order by type desc, name asc`
99

1010
GetCommonDailyProblemSQL = `select * from problems where id in
1111
(select problem_id from user_problems where user_id = 1 and picked = true and finished = false and deleted_at is null

0 commit comments

Comments
 (0)