Skip to content

Commit 5a106cf

Browse files
committed
Use a different sort when getting default column of project
1 parent 0b82fed commit 5a106cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/project/column.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func (p *Project) getDefaultColumn(ctx context.Context) (*Column, error) {
250250
var column Column
251251
has, err := db.GetEngine(ctx).
252252
Where("project_id=? AND `default` = ?", p.ID, true).
253-
Desc("id").Get(&column)
253+
OrderBy("sorting, id").Get(&column)
254254
if err != nil {
255255
return nil, err
256256
}

0 commit comments

Comments
 (0)