Sort:  

Thanks @sjacob. It is a bit tricky indeed, but worth trying nonetheless