~evanj/evanjon.es

3f82d51b5caad281c958549726ffde056b5f3a04 — Evan M Jones 1 year, 6 months ago 86cd851 next
Fix(sorting): CMS sorting oops.
1 files changed, 1 insertions(+), 1 deletions(-)

M internal/s/cms/cms.go
M internal/s/cms/cms.go => internal/s/cms/cms.go +1 -1
@@ 202,7 202,7 @@ func (cms *CMS) Find(ctx context.Context, typeID int, field, query string) (i.Co
 **********/

func (cms *CMS) list(ctx context.Context, typeID int) ([]*Content, error) {
	l, err := cms.provider.List(ctx, typeID, "asc", "date")
	l, err := cms.provider.List(ctx, typeID, "desc", "date")
	if err != nil {
		return nil, err
	}