Since Unicode is missing a series of zero-width sorting characters, I need to define equivalent characters that will allow me to force a specific list into a list that is automatically sorted by character values. Unfortunately, the list items are not in alphabetical order, and it is not permissible to prefix them with visible characters to ensure that the sort result matches the desired result.
What Unicode characters can be thrown out before regular Latin alphabetical text and do not appear, but still allow me to โsplashโ the sorting as I need?
(BTW does this with Drupal 5 with a user profile list box. Donโt worry, suggesting changing it to a dictionary / category.)
A zero-width space (U + 200B) should probably do what you want. From the Unicode specification:
Space of zero width. U + 200B ZERO WIDTH SPACE indicates the possibility of line breaking, except that it does not have a width. Zero-width space characters are intended for use in languages โโthat do not have a visible word spacing to represent line break options such as Thai, Khmer, and Japanese.
It should be in most fonts that you come across, but YMMV.
/ . sql- (ORDER BY column_a, column_b). . Php usort(array, comparisonFunction) , , SQL .
usort(array, comparisonFunction)
, , , , , , . ( ).
Unicode , , / , , ( , , ). "" " " , . , , , , Unicode.
Source: https://habr.com/ru/post/1697699/More articles:Sharing files between a VM and a host using Virtual PC 2007 - virtual-machinereturning null values โโfrom a web service call - web-servicesYasnippet and pabbrev work together at Emacs - emacsEnable local scripts and flash in ie7 - internet-explorer-7Sqlite if it contains - syntax.NET Micro Framework on ARM Cortex-M3 Core - armIs it possible to check properties starting with underscore? - python24-hour Gaussian Distributions with PHP - mathAnimated Gifs in Flex 3 - flexJava 1.4 synchronization: allow only one method instance (non-blocking)? - javaAll Articles