Sort:  

Exactly.
He did the best thing for himself