Why does wilted lettuce become fresh again in sugar water?

Hello there We're currently learning about osmosis in biology, and I stumbled across this tip online. You're supposed to soak wilted lettuce in sugar water for two hours and BOOM, it's fresh again. I still don't quite understand how this works since the sugar solution is actually hypertonic and the fluid should flow out of…