List issues order by newly created first


#1

Hi,
I want to make a GraphQL to show list of all issues in a repo ordered by createdAt date in descending order. So the newly created one comes first…
Is it possible to do so ?
Also i notice that GraphQL following query which loops over all the issues by default returns issues sorted by created date in ascending order… But i need the reverse… Although i couldnt find any documentation for the same that GraphQL will return the sorted list always ?

{

repository(owner: “talk-to”, name: “flock-notes”) {
issues(first: 10) {
totalCount
edges {
node {
number
title
createdAt
url
author {
login
}
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}