aboutsummaryrefslogtreecommitdiff
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-11 10:15:55 -0500
committerUnknwon <u@gogs.io>2016-03-11 10:15:55 -0500
commitcb1eadc2768ea5ffb2967eb4262e96730c3f9ba5 (patch)
tree9ee81ef7fb5901aefb5c28d8ae09e55bbf9121b5 /models/issue.go
parent5267dce21023802818b0c0c16ba2ca47c146e1b5 (diff)
parent1314ba219ef8a655872df743434bffe959d3028f (diff)
Merge pull request #2810 from maxlazio/fix_updated_and_created
Update uses of updated and created
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/issue.go b/models/issue.go
index 9dcff15a..067f0a0b 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -495,11 +495,11 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
switch opts.SortType {
case "oldest":
- sess.Asc("created")
+ sess.Asc("created_unix")
case "recentupdate":
- sess.Desc("updated")
+ sess.Desc("updated_unix")
case "leastupdate":
- sess.Asc("updated")
+ sess.Asc("updated_unix")
case "mostcomment":
sess.Desc("num_comments")
case "leastcomment":
@@ -507,7 +507,7 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
case "priority":
sess.Desc("priority")
default:
- sess.Desc("created")
+ sess.Desc("created_unix")
}
labelIDs := base.StringsToInt64s(strings.Split(opts.Labels, ","))