Sort users by metadata field

We have a same issue and same error message given when we include the ‘&sort=’ param in our search users query. The query works if the sort param is removed from the query but always fails if ‘&sort=’ is included. Also… this strangely only occurs with one of our tenants. In the other tenant the search query works fine even with the sort param included.