Hi All,
I’ve a string a single string like example “FeeName: Tuition-S1_2024, FromDate: 2/12/2024, Invoice Amount: 8250, FeeName: Tuition-S2_2024,FromDate: 7/29/2024, Invoice Amount: 8250, FeeName: Tuition-S1_2025, FromDate: 2/10/2025, Invoice Amount: 8250, FeeName: Tuition-S2_2022, FromDate: 7/25/2022, Invoice Amount: 0, FeeName: Tuition-S1_2023, FromDate: 2/13/2023, Invoice Amount: 0, FeeName: Tuition-S1_2023, FromDate: 2/13/2023, Invoice Amount: 0, FeeName: Tuition-S2_2023, FromDate: 7/24/2023, Invoice Amount: 8250”
I want to rearrange that string into an order based on From Date like below
FeeName: Tuition-S2_2022, FromDate: 7/25/2022, Invoice Amount: 0, FeeName: Tuition-S1_2023, FromDate: 2/13/2023, Invoice Amount: 0,FeeName: Tuition-S1_2023, FromDate: 2/13/2023,FeeName: Tuition-S2_2023, FromDate: 7/24/2023, Invoice Amount: 8250,FeeName: Tuition-S1_2024, FromDate: 2/12/2024, Invoice Amount: 8250,FeeName: Tuition-S2_2024,FromDate: 7/29/2024, Invoice Amount: 8250,FeeName: Tuition-S1_2025, FromDate: 2/10/2025, Invoice Amount: 8250,
Basically with latest From date comes first , how to do that any help would be greatful.