I need help writing codes for two programs

First program: write a code that sorts 10 boxes accending and decending order wheather it's letters, names or numbers.

Second program:I have to use the lost focus event to write a code that totals up nine boxes that are controled arrays, the tenth box should total the numbers entered into the 9 boxes.


Thanks