Sorry, this is a help forum, not a free homework store. We help you with problems you have with what YOU have written.
If we provide the code, you learn nothing. Google up some sorting tutorials and give it a shot. When you have problems with your code, post back. We'll be glad to help. Be sure and read the "Before you make a query" thread before you post code.