Sort records for correct true/false positives

fixes #45 
You don't necessarily need to take action on this, but it's worth noting that this is still a situation where this function will return bogus results for non-sorted input.