aa
This commit is contained in:
@@ -131,7 +131,7 @@ func GetJobs(db *DaoDB, userIDs []string, categoryIDs, statuss, vendorIDs, types
|
||||
} else if sortType == sortTypeTime {
|
||||
sql += ` ORDER BY job_span_top DESC, top_seq, a.created_at`
|
||||
} else if sortType == -sortTypeTime {
|
||||
sql += ` ORDER BY job_span_top DESC, top_seq, a.created_at DESC`
|
||||
sql += ` ORDER BY status DESC, job_span_top DESC, top_seq, a.created_at DESC`
|
||||
}
|
||||
}
|
||||
sql += " LIMIT ? OFFSET ?"
|
||||
|
||||
Reference in New Issue
Block a user