REST API Query Sort Is Affected By CASE (Doc ID 2227890.1)

Last updated on FEBRUARY 19, 2017

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.11.1.0 and later
Information in this document applies to any platform.

Goal

On : 11.1.11.1.0 version, Accounts, Contacts, Households

Customer question
----------------------
How to get the REST API Query sorted?

Customer requirement
---------------------------
Customer is querying using the REST API and apply a sort order.

The results are not sorted alphabetically as expected. Instead results are ordered based on the case of the first letter in the string.

Example REST Contact Query

https://<URL>/crmCommonApi/resources/11.1.11/contacts?totalResults=true&offset=0&limit=10&orderBy=FirstName:desc&fields=FirstName

Returns results in the order

mary
john
craig
Mary
John
Craig

Expected results to be ordered based on the character in the string not by its case.

Mary
mary
John
john
Craig
craig
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms