Sort filter not working
The sort filter appears to be broken. The following template code:
{{ site.navigation | sort: title }}
causes the following output:
Liquid error: undefined method `<=>' for #
Comments are currently closed for this discussion. You can start a new one.
2 Posted by John Nunemaker on 20 Apr, 2011 06:07 PM
Hmm... I just did this and had no issues. Maybe put quotes around title and see if that helps.
3 Posted by David Glick on 20 Apr, 2011 06:10 PM
Yep, that did the trick - both in the example above and the non-trivial case I was using it for. Thanks! Might want to update the docs.
Jonathan Hoyt closed this discussion on 23 Apr, 2011 08:03 PM.