Ok, I fixed it, now I need help with a sorting alrogithm, I need it to sort items from a list into another list depending on the lists  item, like it needs to order the items from one list's  item from smallest to highest into another list, makes sense?
The nice thing about using the print() function is that it works with Python25, Python26 and the new Python30. Again ...
# sort a lis of [name, age] lists by name and then age
# works with Python25 and Python30
list1 = [['zoe', 29], ['ardy', 77], ['moe', 17]]
# default sorts by item in index 0 (the name)
list2 = sorted(list1)
# use key to sort by item in index 1 (the age)
list3 = sorted(list1, key=lambda x: x)
my output -->
[['zoe', 29], ['ardy', 77], ['moe', 17]]
[['ardy', 77], ['moe', 17], ['zoe', 29]]
[['moe', 17], ['zoe', 29], ['ardy', 77]]
I want it to sort both the map name and the map index though should I use a dictionary instead?
If you want to look up the name or index then use one dictionary for each, unless there is a very large data set. If you want to sort and print, then sort using a normal items.sort() or
items.sort(key=operator.itemgetter(-1)) for the last element