Hi Team i would need your help to maybe create a custom activity to re-arrange my excel sheet

my excel sheet always random but it will always have a particular forms

exampl of my excle sheet :

- YTD
- 1_AB
- 3_AB
- 2_AB
- 0_AB
- 2_NC
- 0_NC
- 1_NC

and i would like to arrange it like :

- YTD(excel sheet with “YTD” in the word will alwyas be the first )
- 1_AB (follow up by the LEAST number and FIRST number found in order of A- Z)
- 2_AB (follow up by the same group as the previous one (AB)
- 3_AB
- 0_AB (Ended in number ZERO ‘0’ on the same group (AB)
- 1_NC (Continue on the next group after A - B - C etc. but always start again in the LEAST NUMBER MEANS IT CAN START FROM 2 IF 1 is not present )
- 2_NC (follow up in the same group (NC) but now on next number after the previous
- 0_NC (ended with number 0 )

REALLY NEED your help guys

thank you