implemented the basic sort, need more effort on sync the boarder items