You need to sign in to do that
Don't have an account?
Arjun y 7
How to sort list of strings
Hi All,
Could any one tell me how to sort the below list of strings?
Input : List<String> strList = new List<String>{'1_4','1_2','1_8','2_3'};
Output Should display as : 1_2,1_4,1_8,2_3
Thanks
Arjun
Could any one tell me how to sort the below list of strings?
Input : List<String> strList = new List<String>{'1_4','1_2','1_8','2_3'};
Output Should display as : 1_2,1_4,1_8,2_3
Thanks
Arjun
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_collections_lists_sorting.htm