What's wrong with my Comparator (Hysteresis)
You are using an operating point analysis (.op) with a sweep of the resistor value. In an operating point analysis there is no concept of time, so the comparator doesn't really know whether the input is rising or falling. To simulate this circuit you need to use a transient analysis an just vary the voltage on in using a piece-wise linear (PWL) voltage source.