add sort to alpha-beta