How does liquidation work? How much of my collateral gets liquidated, and which collateral tokens get liquidated?

Thank you for the response. Is there a reason it was designed such that the liquidator chooses what gets liquidated? I would far prefer to rank the collateral myself for what gets collateralized first, and generally that seems more user oriented. I’d love to understand the rationale better.