Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

List View Sorting

SA-2023

Summary



When user sort strings in listview, it sorts based on the ASCII.  Consider the below scenario.

When user sort the following

Bangalore
HYDerabad
BASH
Hash

The above sorting results the following in ascending order

BASH
Bangalore
HYDerabad
Hash

If you notice, even though Bangalore is supposed to be above BASH, based on the ASCII it has put BASH on top and similarly Hash should have been on top but HYDerabad is put on top. This sorting is based on ASCII, can we have these sorted based on the alphabets irrespective of the capitals.

Error Messages



NA


Steps to Reproduce


Try to sort a listview with data in below format

Bangalore
HYDerabad
BASH
Hash

The above sorting results the following in ascending order

BASH
Bangalore
HYDerabad
Hash

If you notice, even though Bangalore is supposed to be above BASH, based on the ASCII it has put BASH on top and similarly Hash should have been on top but HYDerabad is put on top. This sorting is based on ASCII, can we have these sorted based on the alphabets irrespective of the capitals.


Root Cause


On going through the user scenario, We see that the issue was due to the oracle database which the user was using.

The sort order vary from database to database and PRPC does not change the sort order, PRPC just shows the data after fetching from the database.

Resolution



We have suggesed the user to change the a parameter in the Oracle database that is NLS_COMP = LINGSTIC, After changing the mentioned parameter the data from the database was being sorted as the user expected and the same was shown on the PRPC side.
Suggest Edit

Published January 31, 2016 - Updated December 2, 2021

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us