fixes for delete and sort, moved each_range and reverse_each_range to hooked array