The invention relates to culturally sensitive sorting of records. The invention
provides a method and a computer system for sorting a set of keyed records based
on a preferred locale specification having collation information of a culture.
The method is performed on a computer system operatively coupled to a computer
readable memory storing the set of keyed records. The steps include reading a locale
token associated with the set of records, the locale token identifying a preferred
locale object having collation information, using the preferred locale object to
locate and read the collation information, creating a culturally correct collation
key for each data key associated with the each record, and using the created culturally
correct collation keys to sort the set of records into a culturally correct sorted order.