diff options
author | stevegt <stevegt@t7a.org> | 2019-03-05 15:39:41 +0100 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-03-05 09:39:41 -0500 |
commit | b257e0456b819e4ee460acd9d1f449bd09c71ad0 (patch) | |
tree | ee487f3e5880bc2cc0a4f31e33afb0da6fdeb4b1 /models | |
parent | 4512634604e17734f0111c10efe377c7400cf577 (diff) | |
download | gitea-b257e0456b819e4ee460acd9d1f449bd09c71ad0.tar.gz gitea-b257e0456b819e4ee460acd9d1f449bd09c71ad0.zip |
Add ability to sort issues by due date (#6206) (#6244)
Signed-off-by: Steve Traugott <stevegt@t7a.org>
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go index 396c029d46..0429ac4c8c 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1279,6 +1279,10 @@ func sortIssuesSession(sess *xorm.Session, sortType string) { sess.Asc("issue.num_comments") case "priority": sess.Desc("issue.priority") + case "nearduedate": + sess.Asc("issue.deadline_unix") + case "farduedate": + sess.Desc("issue.deadline_unix") default: sess.Desc("issue.created_unix") } |