The forces of attraction are strongest in solids and weakest (or negligible) in case of gases. Sugar is a solid, water is in liquid form and oxygen is a gas so, the order of forces of attraction is oxygen < water < sugar.