use rowid as collections order field
This commit is contained in:
parent
902e07e724
commit
fac0d5b899
|
@ -38,7 +38,7 @@ func (app *BaseApp) FindAllCollections(collectionTypes ...string) ([]*Collection
|
||||||
q.AndWhere(dbx.In("type", list.ToInterfaceSlice(types)...))
|
q.AndWhere(dbx.In("type", list.ToInterfaceSlice(types)...))
|
||||||
}
|
}
|
||||||
|
|
||||||
err := q.OrderBy("created ASC").All(&collections)
|
err := q.OrderBy("rowid ASC").All(&collections)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue