If the orderBy function is used in a Defined related list, users can no longer order that related list.
Steps to Reproduce
Navigate to System Definitions > Relationships.
Create a new record with the following values:
Name: Test Relationship User
Applies to Table: Incident
Queries from table: User (sys_user)
Query with: current.orderBy("name");
Open any existing incident and configure related lists.
Add the Test Relationship User record.
The related list will be sorted by Name, but you are uable to select any other column to sort on or change the sort direction.
After carefully considering the severity and frequency of the issue, and risk of attempting a fix, it has been decided to not address this issue in any current or future releases. We do not make this decision lightly, and we apologize for any inconvenience. If you have any questions regarding this problem, contact ServiceNow Customer Support.
Related Problem: PRB1266535