I have a list called self.nodePathList which contatins [782, 455, 231]. I then put it into another list variable: self.sortedNodePath = self.nodePathList. both lists now contain the same things. I sort self.sortedNodePath. Yet, they both get sorted. i checked through the code over and over but i'm not making any spelling errors or using the wrong names. the code is below if you want to use it
self.sortedNodePath = self.nodePathList
#######sorting
for passnum in range(len(self.sortedNodePath)-1,0,-1):
for i in range(passnum):
if self.sortedNodePath[i]>self.sortedNodePath[i+1]:
self.temp = self.sortedNodePath[i]
self.sortedNodePath[i] = self.sortedNodePath[i+1]
self.sortedNodePath[i+1] = self.temp
#######END OF SORTING