You don't have to go far back as to the reporting of the crime, investigation, arrest and charge.
I think basically:
Plea --> Hearing --> Factors affecting decision (objective, aggravating etc) --> Suitable punishment
I may have got plea/hearing mixed up :S