Here is the code that I'm getting an error on. I'm getting the error: "list index out of range", I know that it's because you can't remove items in an iteration, but I need to and I don't know how. 

I'm essentially trying to sort this list but finding the minimum and then appending it to the new list and removing it from the old list, but I don't know how. Please help.

**Code:**

```
list = [22,1,-5,-10,62,-11,36,8]
m = list.index(min(list))
sorted_list = []

for x in range(len(list)):
    if list[x] > list[m]:
        sorted_list.append(list[m])
        list.remove(list[m])

print (sorted_list)

```