>Alan, the "foot stuck" is the clue. Presumably your foot caught and your body pivoted about it, breaking the ankle but also forcing your knees in directions they are not designed to move. Probably the knees are far more significant than the ankle. Might be worth doing some online research so you can ask your surgeon smart questions. Re getting on your feet, it may be tough with the knees + ankle but demonstrate to your physician and physio that you're keen +++ and smart. In particular, convince the physio that you will follow her instructions to the letter without trying to be a hero.
Yes, my dad tried to be a hero when he got his hip replaced. He ended up taking a late night ambulance ride to the ER to get it popped back in after he fell.