Hello, I am facing a problem where I need to sort elements, depending on their value, which contains a numbers, separated by periods. I need to sort elements depending on the value of the number before first period, then the number between first and second periods and so on. I don't know, how deep this hierarchy can go and that is the biggest problem.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<ROW>2.0.1</ROW>
<ROW>1.2</ROW>
<ROW>1.1.1</ROW>
<ROW>1.2.0</ROW>
<ROW>1</ROW>
</root>
The result shoul be like this:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<ROW>1</ROW>
<ROW>1.1.1</ROW>
<ROW>1.2</ROW>
<ROW>1.2.0</ROW>
<ROW>2.0.1</ROW>
</root>
Is this possible at all? Appreciate any help.