These are chat archives for jescalan/roots

30th
Nov 2016
John
@jwmarcus
Nov 30 2016 21:18
Just wanted to chime in that @jescalan 's reply to @edinchez solved my problem too. Google searches kept leading me to: jescalan/roots#133 but trying to call sort(site.posts) kept throwing "Sort is not a function" in my index.jade. Just a FYI.
Jeff Escalante
@jescalan
Nov 30 2016 21:59
weird. seems like a jade processing thing
John
@jwmarcus
Nov 30 2016 22:01
Could be, my final solution for sorting by date was - each post in site.posts.sort((a,b) => Date.parse(a.date) < Date.parse(b.date))
Jeff Escalante
@jescalan
Nov 30 2016 22:55
looks great