I usually order by output. So in this case b < p.