adds simple sort function to users, spaces, homes