In my database I\'ve column fill this data:
1 1.1 1.1.1 1.1.1.1 1.1.2 1.10 1.11 1.2 1.9
I want to sort it, to get result looks like this:>
You could split the string to an array, cast it to an int[] and rely on Postgres' natural ordering for arrays:
int[]
SELECT mycolumn FROM mytable ORDER BY STRING_TO_ARRAY(mycolumn, '.')::int[] ASC