In particular, after every pass, all elements after the last swap are sorted, and do not need to be checked again.
Konkretno, posle svakog prolaza, svi elementi do poslednje zamene su sortirani i ne treba ih ponovo proveravati.