Following the tutorial here 
https://www.howtographql.com/graphql-js/8-filtering-pagination-and-sorting/ -- the last step of adding the aggregate count seems to have broken the sorting implemented in the previous section of the tutorial. Wonder what I'm missing. The feed resolver is implemented using an IN query 
context.db.query.links({ where: { id_in: parent.linkIds } }, info)
 and I'm not following how that can maintain the order specified in the original query.