You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
I've tried the following: var response = ws.searchUsers(search, {sort: 'last, first', skip: skip, limit: size, count: true}); var response = ws.searchUsers(search, {sort: 'last', skip: skip, limit: size, count: true}); var response = ws.searchUsers(search, {sort: 'last:desc', skip: skip, limit: size, count: true}); var response = ws.searchUsers(search, {sort: 'last'});
Each 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.
Here is a sample of the user object I am trying to sort, all user objects have the 'first' and 'last' parameters
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).
I've tried the following:
var response = ws.searchUsers(search, {sort: 'last, first', skip: skip, limit: size, count: true});
var response = ws.searchUsers(search, {sort: 'last', skip: skip, limit: size, count: true});
var response = ws.searchUsers(search, {sort: 'last:desc', skip: skip, limit: size, count: true});
var response = ws.searchUsers(search, {sort: 'last'});
Each 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.
Here is a sample of the user object I am trying to sort, all user objects have the 'first' and 'last' parameters
The text was updated successfully, but these errors were encountered: