use rowid as collections order field

This commit is contained in:
Gani Georgiev 2025-04-27 22:08:31 +03:00
parent 902e07e724
commit fac0d5b899
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }