+ [2019-04-25T19:01:36Z] fury trying to set up a jekyll docker image, with some grunt tasks to pre-generate responsive images. having some trouble getting these node modules to stick around somewhere - /srv/jekyll/node_modules seems to get blown away right after i run yarn install
+ [2019-04-25T19:02:14Z] fury but if i put them somewhere else in the image, then the grunt task refuses to run because it's not local to the project
+ [2019-04-30T23:26:23Z] Cranite Hey so I'm having a problem with array sorting in Liquid, is there a way to sort an array based on an element's properties? The example being that I'm sorting through a list of groups that have members, the list of groups is a collection and each group has a members list. I would like to sort the list of groups by how many members it has, so larger groups get shown first.
+ [2019-04-30T23:27:33Z] Cranite The current code I have for it is as follows: {% assign groups = site.groups | sort: "members | size" %}
+ [2019-04-30T23:27:45Z] Cranite But it doesn't seem to work, though it does... compile?

message no. 172025

Posted by Cranite in #jekyll at 2019-04-30T23:26:23Z

Hey so I'm having a problem with array sorting in Liquid, is there a way to sort an array based on an element's properties? The example being that I'm sorting through a list of groups that have members, the list of groups is a collection and each group has a members list. I would like to sort the list of groups by how many members it has, so larger groups get shown first.
+ [2019-05-01T01:54:57Z] Cranite Hello?
+ [2019-05-01T02:04:12Z] Cranite Do you know much about array sorting in Liquid?
+ [2019-05-01T02:12:04Z] cryptic0 Cranite https://help.shopify.com/en/themes/liquid/filters/array-filters
+ [2019-05-01T02:12:33Z] Cranite Ah you joined after I asked my first question