add isSort on range method