Question:
Where can I find the priority of characters when sorting in MySQL, PHP, or in general on Linux and Windows?
For example, everyone knows that a matches up to b when doing upward sorting on a string in MySQL. But what about other characters? A dollar sign $ appears in front of an asterisk * ? Does a space pass before an exclamation mark? etc...
What dictates the sort order? Does it use base ascii / UTF-8 values? Different different technologies?
Technologies to consider:
- Databases - MySQL / SQL / SQLite / Oracle / etc
- Programming languages (for string sorting functions) - PHP / Javascript / ASP.NET / Visual C # / Python / Ruby / Objective C
- OS (i.e. sorting files by file name) - Windows / Linux / MacOS / iOS / Android
source
share