I'm creating a rpg and I'm having problems with an array sort. the following code is suppossed to sort through a list of skills and if the character already has the skill or if his stats don't allow him to take that skill then it won't be added to the list... but it doesn't seem to be working right. So if someone could help it would be nice.

I just figured out the problem twas something in the function that was calling this one. forgot a -1 *sigh*
oh and and Find_skill_type() uses passing by reference for start and end so that was okay but thanks for replying though :)