Sort:  

It was difficult to write down! Did you go through a similar scenario?