changed sort to use qAsort per advice from Ricardo.

The qsort operation improves the sprite batch sort by 10x - see this in Ricardo's performance matrix. Need to update our performance tests to match the new cocos2d-x performance tests too.