The methods orderBy and orderByDesc from glideRecord are not working for Service Portal.
Steps to Reproduce
This issue is fixed in all currently supported versions. Please review the Fixed In section to determine the latest available patch your instance can be upgraded to.
The only available workaround before the upgrade was to use addOrderBy(field) instead of orderBy(field). There was no workaround for orderByDesc(field).
Related Problem: PRB701584