comfy / comfy-blog

Blog Engine for ComfortableMexicanSofa (Rails 5.2+)
MIT License
106 stars 86 forks source link

Blog posts are returned unsorted from PostsController#index #75

Closed kirichkov closed 6 years ago

kirichkov commented 6 years ago

Expected behavior

Index should return @blog_posts sorted according to their published date

Actual behavior

@blog_posts are returned unsorted. This can result in a blog post appearing on multiple pages and others not appearing at all.

System configuration

Rails version: 5.2.0

CMS version: 2.0.15

Ruby version: 2.5.1p57

GBH commented 6 years ago

Makes sense. PR?

kirichkov commented 6 years ago

Will do!