The first thing is to make sure they are alert and can respond to you. The 2nd thing to do is to help them up, being sensitive to how they feel, by not using jerking movements or being too close to them to make them nervous. Move a chair to within arms reach. Do not pull only on the arms but if you can get behind them and lift their shoulders. Once back upright move a chair to them so they can sit and collect themselves.