If you are a beginner then try "Linear Sort"... Try googling and find out the descriptions on linear sort...if you find any problem then get back to me...
You can use the link provided by coderzone but I would suggest u to start with “linear sort” first…Coderzone is sorting expert he can explain u the linear sort instead of posting links out here….
I never claimed to be an expert though and check out my few articles here - http://my.go4expert.com/coderzone I hope this self promotion is not flagged by admin