Sort:  

Yeah, it's not easy, but I used to solve this no problem a few years ago. I just totally forgot it since I didn't need to use it since then.