diff --git a/src/pkg/blob/dao/dao.go b/src/pkg/blob/dao/dao.go index dd4bca8ec..3bebaa5d1 100644 --- a/src/pkg/blob/dao/dao.go +++ b/src/pkg/blob/dao/dao.go @@ -223,6 +223,9 @@ func (d *dao) ListBlobs(ctx context.Context, query *q.Query) ([]*models.Blob, er return nil, err } + if query.Sorting != "" { + qs = qs.OrderBy(query.Sorting) + } blobs := []*models.Blob{} if _, err = qs.All(&blobs); err != nil { return nil, err