```
list_of_tuple = [(0,2), (0,6), (4,6), (6,7), (8,9)]

```

Since `(0,2)` & `(4,6)` are both within the indexes of `(0,6)`, so I want to remove them. The resulting list would be:

```
list_of_tuple = [(0,6), (6,7), (8,9)]

```

It seems I need to sort this tuple of list somehow to make it easier to remove. But How to sort a list of tuples?

Given two tuples of array indexes, `[m,n]` and `[a,b]`, if:

```
m >=a & n<=b

```

Then `[m,n]` is included in `[a,b]`, then remove `[m,n]` from the list.