Title: sort option not working with searchUsers method · Issue #34 · cloudmine/CloudMineSDK-JavaScript · GitHub
Open Graph Title: sort option not working with searchUsers method · Issue #34 · cloudmine/CloudMineSDK-JavaScript
X Title: sort option not working with searchUsers method · Issue #34 · cloudmine/CloudMineSDK-JavaScript
Description: Trying to run a searchUser query and despite my best efforts I cannot get the results to be sorted. Sorting works in other areas of the project when querying objects, but seems to fail when searching users (or when retrieving all users)....
Open Graph Description: Trying to run a searchUser query and despite my best efforts I cannot get the results to be sorted. Sorting works in other areas of the project when querying objects, but seems to fail when searchi...
X Description: Trying to run a searchUser query and despite my best efforts I cannot get the results to be sorted. Sorting works in other areas of the project when querying objects, but seems to fail when searchi...
Opengraph URL: https://github.com/cloudmine/CloudMineSDK-JavaScript/issues/34
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sort option not working with searchUsers method","articleBody":"Trying to run a searchUser query and despite my best efforts I cannot get the results to be sorted.\r\n\r\nSorting works in other areas of the project when querying objects, but seems to fail when searching users (or when retrieving all users).\r\n\r\nI've tried the following:\r\n`var response = ws.searchUsers(search, {sort: 'last, first', skip: skip, limit: size, count: true});`\r\n`var response = ws.searchUsers(search, {sort: 'last', skip: skip, limit: size, count: true});`\r\n`var response = ws.searchUsers(search, {sort: 'last:desc', skip: skip, limit: size, count: true});`\r\n`var response = ws.searchUsers(search, {sort: 'last'});`\r\n\r\nEach results is only sorted by what appears to be the date the user was added. Ideally I would like to sort by the last and first fields of the user object.\r\n\r\nHere is a sample of the user object I am trying to sort, all user objects have the 'first' and 'last' parameters\r\n```\r\n{\r\n \"__id__\": \"idgoeshere\",\r\n \"services\": null,\r\n \"__class__\": \"UserCM\",\r\n \"email\": \"email@gmail.com\",\r\n \"attending\": false,\r\n \"__type__\": \"user\",\r\n \"first\": \"FirstName\",\r\n \"last\": \"LastName\",\r\n \"__account__\": {\r\n \"email\": \"email@gmail.com\",\r\n \"username\": \"username\"\r\n }\r\n}\r\n```","author":{"url":"https://github.com/mdhiggins","@type":"Person","name":"mdhiggins"},"datePublished":"2017-06-29T18:45:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/34/CloudMineSDK-JavaScript/issues/34"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:770f2801-b727-bec4-169e-56b540a8c421 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD7A:526BF:50146:6210E:6991C9F6 |
| html-safe-nonce | eb1788cc21578ff08018a511a3198a4e58699e13368ad59ed8d000d0b6d5e192 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDdBOjUyNkJGOjUwMTQ2OjYyMTBFOjY5OTFDOUY2IiwidmlzaXRvcl9pZCI6Ijg2OTU1MDYxMDEwODc2MTk1NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | de6d686d07c0853054f8f9d87714b01589191d2aa82a49219c8dd4e427972583 |
| hovercard-subject-tag | issue:239575652 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudmine/CloudMineSDK-JavaScript/34/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e42e1e0a9cbb5fce4bdbdd272f0f237e80cbe73610e79f2b995dbec5956d560d/cloudmine/CloudMineSDK-JavaScript/issues/34 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e42e1e0a9cbb5fce4bdbdd272f0f237e80cbe73610e79f2b995dbec5956d560d/cloudmine/CloudMineSDK-JavaScript/issues/34 |
| og:image:alt | Trying to run a searchUser query and despite my best efforts I cannot get the results to be sorted. Sorting works in other areas of the project when querying objects, but seems to fail when searchi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdhiggins |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudmine/CloudMineSDK-JavaScript git https://github.com/cloudmine/CloudMineSDK-JavaScript.git |
| octolytics-dimension-user_id | 1031632 |
| octolytics-dimension-user_login | cloudmine |
| octolytics-dimension-repository_id | 2401003 |
| octolytics-dimension-repository_nwo | cloudmine/CloudMineSDK-JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2401003 |
| octolytics-dimension-repository_network_root_nwo | cloudmine/CloudMineSDK-JavaScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width