How i can add sort by functionality for blog listing pages, which will sort the blog posts.
Topic summary
A user is seeking to implement sort functionality for blog listing pages in Shopify. They want to enable sorting blog posts by multiple criteria:
Desired sorting options:
- Edit date (most/least recent)
- Post title (A-Z / Z-A)
- Blog title (A-Z / Z-A)
- Author name (A-Z / Z-A)
Another participant shared a filter implementation they created (visible on their development site with an accompanying screenshot), but this addresses filtering rather than sorting. The original poster clarified they already have filtering working and specifically need sorting functionality.
Status: The question remains unanswered with no solution provided yet for implementing the sort feature using the mentioned technologies (CSS, HTML, JavaScript, Liquid).
Hi. So i was able to create something like this. Not sort but more of a filter functionality for blogs.
My development site: https://shadabs-online-store.myshopify.com/?_ab=0&_fd=0&_sc=1
Password: reafur
If you look very down the home page you will find a blog sections with that functionality like this.
filter functionality was already done by me, i want to add sort functionality which will sort the blog post:
Sort options
-
Edited (most recent)
-
Edited (least recent)
-
Title (A–Z)
-
Title (Z–A)
-
Blog title (A–Z)
-
Blog title (Z–A)
-
Author (A–Z)
-
Author (Z–A)
