binary search - MySQL order by Alphanumeric (Numers, Capital letters and then lower case) -


how in mysql sort numbers, capital letters , lastly lower case letters?

this current table:

24rps8wyitpwhnamp 25xa2rpbh28cjqcnk 27wktqifnuxbfxzgg 288vdizsy4g6ybdmt 28a2hedvgvgpbnwku 28a2hedvgvgpbnwku 2a5ttwymbxmjety99 2a5ttwymbxmjety99 2a5ttwymbxmjety99 2a5ttwymbxmjety99 2b7a4tgcgbynq8jjm 2b7a4tgcgbynq8jjm 2ewfrnrxke4k472dj 2fw2jjeorjn6ddckv 

and want this:

24rps8wyitpwhnamp 25xa2rpbh28cjqcnk 27wktqifnuxbfxzgg 288vdizsy4g6ybdmt 28a2hedvgvgpbnwku 28a2hedvgvgpbnwku 2b7a4tgcgbynq8jjm 2b7a4tgcgbynq8jjm 2fw2jjeorjn6ddckv 2a5ttwymbxmjety99 2a5ttwymbxmjety99 2a5ttwymbxmjety99 2a5ttwymbxmjety99 2ewfrnrxke4k472dj 

i found this: http://www.essentialsql.com/use-sql-server-to-sort-alphanumeric-values/

but can't use patindex function in mysql..


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -