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.