Array can be use in stl::sort() when not using vector inside

fix some warnings
use cocos2d coding style