Sort by P(z)