We have SQL Server 2016 as the backend for our application with a _SC collation. The application itself is "locales aware" and supports a customer operating in multiple locales. Thus the data in the database can be in "any language". There is a request to page the data displayed in the UI on sort order based on the users locale across the entire result set. Rather than pass the entire result set to the higher layers and let them do the paging, the team is evaluating
- Passing the culture from the UI layer, across different layers right down to the database,
- map the culture to a specific Collation at the SQL Server and
- have the SQL Server sort & page based on this mapped Collation. Are there better ways to do this OR is this not a good idea and we are better off letting the higher layers be responsible for paging? Per the guidelines we have, sorting is prohibited in the database but I guess this is one use case where these guidelines ought to be relaxed.
I have researched Does Microsoft SQL Server support localized name sorting? and https://social.technet.microsoft.com/wiki/contents/articles/31194.t-sql-sort-data-by-multiple-languages.aspx and this concept is a "union" of these 2 approaches