|
Well, yeah. Finding a tutorial on something like Quick Sort or Bubble Sort shouldn't be too hard. The basis for pretty much any sorting algorithm comes down to comparing an item to another and changing the order of the items based on that.
As for sorting stuff, this is probably where Valmont is going, but the standard library contains functions for that. It would help if we had a little more information, like what you're trying to sort, why you're doing it this way, what code you've got so far, etc.
|