For a Shopify site I'm making, we are using the blog feature to instead promote events. We've assigned a date metafield to each event post. I wanted to know if there was a way to sort these event posts by the date of the event as opposed to through the publish date.
We are using Metafield Manager for our metafields and when calling the date metafield it outputs a long number unless properly formatted by liquids own date format syntax.
You can - to a degree - sort by metafield value. There's an old post here that talks about the concept but the value used has to be pretty specific, and there'll be a limit to the amount of objects you can sort.
|an hour ago|
|2 hours ago|
|3 hours ago|