{"action":"created","issue":{"url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/267","labels_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/267/comments","events_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/267/events","html_url":"https://github.com/mcavage/node-ldapjs/issues/267","id":78471112,"number":267,"title":"The order of the search results is wrong","user":{"login":"yockliu","id":1749541,"avatar_url":"https://avatars.githubusercontent.com/u/1749541?v=3","gravatar_id":"","url":"https://api.github.com/users/yockliu","html_url":"https://github.com/yockliu","followers_url":"https://api.github.com/users/yockliu/followers","following_url":"https://api.github.com/users/yockliu/following{/other_user}","gists_url":"https://api.github.com/users/yockliu/gists{/gist_id}","starred_url":"https://api.github.com/users/yockliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yockliu/subscriptions","organizations_url":"https://api.github.com/users/yockliu/orgs","repos_url":"https://api.github.com/users/yockliu/repos","events_url":"https://api.github.com/users/yockliu/events{/privacy}","received_events_url":"https://api.github.com/users/yockliu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mcavage/node-ldapjs/labels/question","name":"question","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-20T10:37:40Z","updated_at":"2015-05-21T12:45:31Z","closed_at":null,"body":"I set my ldap server to return search results as alpha-ascend.\r\nBut the client search results is not ordered, could you fix it?"},"comment":{"url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/comments/104257530","html_url":"https://github.com/mcavage/node-ldapjs/issues/267#issuecomment-104257530","issue_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/267","id":104257530,"user":{"login":"pfmooney","id":1555070,"avatar_url":"https://avatars.githubusercontent.com/u/1555070?v=3","gravatar_id":"","url":"https://api.github.com/users/pfmooney","html_url":"https://github.com/pfmooney","followers_url":"https://api.github.com/users/pfmooney/followers","following_url":"https://api.github.com/users/pfmooney/following{/other_user}","gists_url":"https://api.github.com/users/pfmooney/gists{/gist_id}","starred_url":"https://api.github.com/users/pfmooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfmooney/subscriptions","organizations_url":"https://api.github.com/users/pfmooney/orgs","repos_url":"https://api.github.com/users/pfmooney/repos","events_url":"https://api.github.com/users/pfmooney/events{/privacy}","received_events_url":"https://api.github.com/users/pfmooney/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T12:45:31Z","updated_at":"2015-05-21T12:45:31Z","body":"In your example, openldap is sorting the results client-side.  You could accomplish the same thing by collecting search results and sorting them after the fact.  Alternatively, the control to request server-side-sorting might also be useful, provided your server supports it."}}