title: How to order a linked collection with the Contentful GraphQL API
body: <p>For the blog I'm working on I have a category page that lists all blogposts that are tagged with that category. Now I want to order those blogs by the <code>createdAt</code> date but I can't seem to find a solution how to order a linked collection with the Contentful GraphQL API.</p>
  <p>The query currently looks like this:</p>
  <pre><code>query {
    categoryCollection(limit: 1, where: {slug: &quot;aws&quot;}) {
      items {
        linkedFrom {
          postCollection(limit: 6, skip: 0) {
            total
            items {
              title
              content
              createdAt
            }
          }
        }
      }
    }
  }
  </code></pre>
  <p>I can use the <code>order</code> parameter for the categoryCollection but not for the postCollection. Is there anything I'm missing with the GraphQL API or do I need to change my content model in Contentful to make this work?</p>