User profile widget while calculating team and direct reports does not order the results alphabetically

Steps to Reproduce

1.Go to any Jakarta / Kingston instance
2.Configure for a user direct reports / memebers and manager.
3. Configure them to be shown as part of user profile widget
4. You will see that the names of the team members are not in alphabetical order


In the user profile widget adding a condition of orderBy('name') in server script.

For example in the calculate team and calculate direct reports below lines can be added in the server script. (Before .query() function)



Related Problem: PRB1290858

Seen In

There is no data to report.

Intended Fix Version


Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-08-14 01:34:31