fix sentence rank sorting to correct ordering (was reverse)