add some base sort structure from leader's code(jacowu )
fix synax