I've created a list in java as following :
1 bbbb london
1.1 aaaa nyc
1.10 cccc jaipur
...
1.2 test test
1.11 test1 test1
I need to sort it based on index 1,1.1,1.2 etc! These are string values.
Like:
1 bbbb london
1.1 aaaa nyc
1.2 test test
...
1.10 cccc jaipur
1.11 test1 test1
How can i do that?
Initially the index was float but in-order to get 1.10 in list i changed index to string so Collection.sort(list) doesnt give output as expected.
My purpose is like to create a numbered bullets like
1 Helo
1.1 helo1
1.2 helo2
1.3 hello3
2 Test
2.1 Test1
2.2 Test2
3 World
Any help please?