Hmm, the file got corrupted. I forgot to tell you sthin : this is a xml file which has some attributes in it like ::
`<attribute name="Username" type="java.lang.String">Hello</attribute>`
`<attribute name="Password" type="java.lang.String">hello</attribute>`
`<attribute name="ID" type="java.lang.String">T00747</attribute>`
`<attribute name="IdMap" type="java.util.Properties">`
50599=1000000
50454=00000054
50080=00005464
50098=00000875
50661=00000665
50788=10000035
50988=10000006
50994=10000656
`</attribute>`
`<attribute name="SubIdMap" type="java.util.Properties">`
50599=1000000
50454=00000054
50080=00005464
50098=00000875
50661=00000665
50788=10000035
50988=10000006
50994=10000656
`</attribute>'
`<!--attribute name="OPSubIdMap" type="java.util.Properties">`
50599=1000000
50454=00000054
50080=00005464
50098=00000875
50661=00000665
50788=10000035
50988=10000006
50994=10000656
Now this file has numbers within attributes. We need to sort them.
NOTE : When I tried you formula, the file only left with sort numbers at one place and rest attributes separated in the file. If you could see the values are repeating in the attributes and we need to sort them in the attribute itself.