I have two Strings s1 and s2 which has amount in that String, I need to sort the whole String based on amount adnd store in arralist.In below code s1 has amount 1541.81 and s2 has amount 500.55, based on amount sort the string and store in Arraylist.
String s1="TO210727B3 1541.81 BBN892400 S103";
String s2="TI210727T6 500.55 BBN793700 TDOMCATTTS205";
Output ArrayList l=[TI210727T6 500.55 BBN793700 TDOMCATTTS205,TO210727B3 1541.81 BBN892400 S103]