Sort:  

I don’t know if there are any public tools but it’s is pretty simple with code.