How to soft search result by node?

Hi,

I’m using a below query to search users:

query users {
  users: search(query: "type:user", type: USER, first: 10) {
    edges {
      node {
        ... on User {
          databaseId
          createdAt
          login
        }
      }
    }
  }
}

The result is below:

{
  "data": {
    "users": {
      "edges": [
        {
          "node": {
            "databaseId": 1024025,
            "createdAt": "2011-09-03T15:26:22Z",
            "login": "torvalds"
          }
        },
        {
          "node": {
            "databaseId": 66577,
            "createdAt": "2009-03-24T16:09:53Z",
            "login": "JakeWharton"
          }
        },
        {
          "node": {
            "databaseId": 905434,
            "createdAt": "2011-07-10T01:07:17Z",
            "login": "ruanyf"
          }
        },
        {
          "node": {
            "databaseId": 499550,
            "createdAt": "2010-11-28T01:05:40Z",
            "login": "yyx990803"
          }
        },
        {
          "node": {
            "databaseId": 810438,
            "createdAt": "2011-05-25T18:18:31Z",
            "login": "gaearon"
          }
        },
        {
          "node": {
            "databaseId": 25254,
            "createdAt": "2008-09-18T22:37:28Z",
            "login": "tj"
          }
        },
        {
          "node": {
            "databaseId": 110953,
            "createdAt": "2009-08-01T18:39:25Z",
            "login": "addyosmani"
          }
        },
        {
          "node": {
            "databaseId": 170270,
            "createdAt": "2009-12-20T22:57:02Z",
            "login": "sindresorhus"
          }
        },
        {
          "node": {
            "databaseId": 1279609,
            "createdAt": "2011-12-22T09:57:32Z",
            "login": "llSourcell"
          }
        },
        {
          "node": {
            "databaseId": 39191,
            "createdAt": "2008-12-09T00:39:23Z",
            "login": "paulirish"
          }
        }
      ]
    }
  }
}

Its result is different with v3 API result:

Lists all users, **in the order that they signed up on GitHub**.

/users

[
  {
    "login": "mojombo",
    "id": 1,
    "node_id": "MDQ6VXNlcjE=",
  },
  {
    "login": "defunkt",
    "id": 2,
    "node_id": "MDQ6VXNlcjI=",
  },
  {
    "login": "pjhyett",
    "id": 3,
    "node_id": "MDQ6VXNlcjM=",
  },
  {
    "login": "wycats",
    "id": 4,
    "node_id": "MDQ6VXNlcjQ=",
  },
  {
    "login": "ezmobius",
    "id": 5,
    "node_id": "MDQ6VXNlcjU=",
  },
  {
    "login": "ivey",
    "id": 6,
    "node_id": "MDQ6VXNlcjY=",
  },
  {
    "login": "evanphx",
    "id": 7,
    "node_id": "MDQ6VXNlcjc=",
  },
  {
    "login": "vanpelt",
    "id": 17,
    "node_id": "MDQ6VXNlcjE3",
  },
  {
    "login": "wayneeseguin",
    "id": 18,
    "node_id": "MDQ6VXNlcjE4",
  },
  {
    "login": "brynary",
    "id": 19,
    "node_id": "MDQ6VXNlcjE5",
  },

So how does the GraphQL search sort the result? Can the sort condition be customzied? Thanks.

The post sesms can’t edit as issues. I mean sort the search result. Thanks.