Residual nilpotence and ordering in one-relator groups and knot groups