On Mar 2, 7:34 pm, Thomas Dybdahl Ahle <lob... at gmail.com> wrote: > Well, you'd have to define the function inside the sortMoves function, as > it is where the variables exists. Oh, sorry, I wasn't thinking there! Regards, Jordan