The verb 'sentence' is the correct legal term used when a court officially decides a punishment. It collocated perfectly with the preposition 'to', as in 'sentenced him to five years'. The verb 'ordered' would require a different structure, and 'sent' does not fit the legal context.