Sort profiles table