add sort methods compare script