delete _is_sorted variable, since i don't need it now.