I wrote the \"bubble sort\" function to sort a list of images. I can\'t understand why the function returns the \"Uncaught TypeError: undefined is not a function\". Can anyo
a[i].attr('src') = a[i+1].attr('src');
has to be written:
a[i].attr('src', a[i+1].attr('src'));
Same for line below.