fix block activated
add sort method
add mergeStack method