add a check to ensure that recommendation has a strength before sorting