List Viewer sort sequence

The List Viewer supports programmatic sorting of on-device data and allows users to sort on any column by tapping or clicking the column header. For sample code, see Master-Detail page. Regarding the "collating sequence" in which text is sorted, you should be aware of the following:

  • Default order   List Viewer is not automatically sorted in the initial display. If you want the data to be sorted on a particular column, you must do that programmatically. Users may sort on a particular column at any time be tapping or clicking the column header.

  • Default sort order   Unless it is changed programmatically, or the user initiates sorts, the default sort order is descending.

  • Case sensitivity   List Viewer sorting is based strictly on the sequence of character codes in the character set that you specify. This means that it is completely case sensitive. In ascending order. "JONES" comes before "Jones", which comes before "jones".

  • Data in non-Latin alphabets   The List Viewer has been tested with Windows 1252 and ISO 8859-1 character sets. Any alphabetic-based, left-to-right language represented in UTF-8 should sort as expected.

  • Right-to-left alphabets   Data represented in character sets for languages that read right-to-left are not sorted correctly.