Sorting a list by whether or not an data field is empty

I’m displaying a list of users. What I’d like to do is sort based on whether the users have uploaded a profile picture, where those that have appear first and those that haven’t appear towards the bottom.

What is the best way to do this?