Try item#to_liquid before looking at the data
Use `raise` instead of logging & aborting
Merge pull request #2493 from jekyll/fix-sort