I have a table that stores hierarchical relationships.They stored as strings like 1.1, 1.1.1, 1.1.2, 1.2 ... Thus,when I need to sort them in hierarchical order I need to invoke my own sort function.Aren't I?But I think it is too long write own effective alghoritm (n*ln(n)).I want to use little function that just compares two values and use it with ORDER BY statement.Can I do this?Are there another ways to achive this goals?Thanks.
0001.0001.0002?