Skip to content

Commit edea3e1

Browse files
author
James
committed
make the order by use ID instead of Index
1 parent 2e1d9cd commit edea3e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/commit_status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ func sortCommitStatusesSession(sess *xorm.Session, sortType string) {
129129
case "leastupdate":
130130
sess.Asc("updated_unix")
131131
case "leastindex":
132-
sess.Desc("index")
132+
sess.Desc("id")
133133
case "highestindex":
134-
sess.Asc("index")
134+
sess.Asc("id")
135135
default:
136136
sess.Desc("created_unix")
137137
}

0 commit comments

Comments
 (0)