Sort List in specific way

You can try the dictionary method for that:

1 Like