This is an example of how sort a Shopify collection by a nested property, specifically how to sort by a setting property of a logo list block. I needed to sort a list of logo blocks by a property contained within a single logo/block. The example below gets all the blocks in the logo list section aka logos, maps over the settings and returns the items where the logo_list property equals “brewery” and sorts the results by title. …

Clint McMahon

Software developer in Minnesota. www.clintmcmahon.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store