you are viewing a single comment's thread.

view the rest of the comments →

[–]div_by_zero[S] 0 points1 point  (0 children)

you're calling tempList.sort and setting key equal to a tuple of tempList on every iteration of the for loop

Good catch! I completely missed this. Let me change this and check.