The default sort on the ltree column is as text. Example: I have 3 columns in my table id, parentid and wbs. The ltree column - wbs has 1.1.12, 1.1.1, 1.1.2
stored in different rows. The select query ordered by wbs column returns 1.1.1, 1.1.12, 1.1.2.
I need it to return 1.1.1, 1.1.2, 1.1.12