My application is using a search function, sometimes the search may return a result set with thousands of items, therefore I am using lazy loading and only retrieving the primary keys.
The problem is that my application is localized, and I need to sort this primary keys alphabetically using another column in the table that has a name that is later localized in code (using the typical key-value pairs .properties file), this sorting varies depending on the Locale.
I know one solution would be to have another table, that basically contains exactly what my .properties file that I use for localization has. But this seems like an extreme solution, is there any other way I can achieve this?. Thank you in advance.