That doesn't help, I already have a book for that. Thanks anyways...I guess
Sorry I didn't just give you the answer. The sorts in the links I gave you -- and in your book, presumably -- are the simplest sorting functions in existence. If you want to sort something, you're going to have to spend some time reading your book and trying to do it. Not being rude to those who offer help.
I don't know. So why is it you are being so rude then?
You asked for help, and short of giving you code to do the work I've offered you two possible answers. You wanna talk about rudeness? Being rude is refusing to accept help because it isn't what you wanted, and being ungracious about it on top.
Programming is a thinking occupation -- if you want to program, you'll have to do some thinking for yourself instead of half-heartedly griping that someone didn't spell it out for you step-by-step.
So maybe it's because programmers are less likely to put up with rude crap than most people, especially when they volunteer their time to help you wrap your brain around it all. And after the way you have treated me here, why would anyone else volunteer their time to try to help you?