Define an undefined score as 0 within the sort method.