Hi, I have been trying to make the bubblesort function work for hours. Unfortunately App Inventor doesn’t like it. Everytime I start it, I get an “undefined runtime error”. But I don’t see any mistake.
When I omit the outer FOR-loop it works perfectly (disregarding the fact, that both loops are necessary to conclude the sorting process). The same, when I leave both FOR-loops and remove the IF in between. No error is indicated. But when I put it all together it stops working.
Any ideas? Your help is highly appreciated.



