Fix for error checking logic

I wasn't checking each person object for each sort parameter before. I
also decided that an incorrect sort parameter was not fatal (i.e. didn't
warrant returning a 0), because it could continue sorting on the other
sort parameters and just display a console error message.