Skip to content

Commit

Permalink
fix order case (#3350)
Browse files Browse the repository at this point in the history
  • Loading branch information
宋小北 committed Sep 1, 2020
1 parent e98a4a3 commit e6f4b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainable_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (db *DB) Having(query interface{}, args ...interface{}) (tx *DB) {

// Order specify order when retrieve records from database
// db.Order("name DESC")
// db.Order(gorm.Expr("name = ? DESC", "first")) // sql expression
// db.Order(clause.OrderByColumn{Column: clause.Column{Name: "name"}, Desc: true})
func (db *DB) Order(value interface{}) (tx *DB) {
tx = db.getInstance()

Expand Down

0 comments on commit e6f4b71

Please sign in to comment.