When a human dies, the body doesn't simply switch off all at once. Different organs stop working at different times, depending on how much oxygen they need and how reliant they are on blood flow.