I have values like:
1.1.2
9.1
2.2
4
1.2.3.4
3.2.14
3.2.1.4.2
.....
I need to sort those values using mysql. The data type for this one is varbinary(300).
The desired output will be like:
1.1.2
1.2.3.4
2.2
3.2.1.4.2
3.2.14
4
9.1
The Query is:
select version_number from table order by version_number asc
it does not give the correct sorting order.
The desired output of this is:
1.1.2
1.2.3.4
2.2
3.2.1.4.2
3.2.14
4
9.1
The version numbers are up to 20 digits (like 1.2.3.4.5.6.7.8.9.2.34) and more also. There is no particular max size and the standard version is just like above mentioned.