In order to sort a PostgreSQL 14 varchar column with numerical values, I'm using a collation created by
CREATE COLLATION de_pos (LOCALE = 'de-DE-u-kn-true', PROVIDER = 'icu');`
With such a collation ORDER BY results in correct order like this
1.2.10
1.2.20
1.2.100
Without that special collation ORDER BY results in
1.2.10
1.2.100
1.2.20
I want to know, what every part of that collation definition exactly means ?
de-DE => locale for german-germany
u => UTF8 ????
kn => ????
true => ????
order by string_to_array(the_column, '.')::int[]
but that only works if the values are strictly numeric1.2.3.20
just as well dbfiddle.uk/…