It's hard to imagine how many times this sort must've been written by accident (see the infinite monkey theorem). Imagine a CS student typing this while not entirely knowing what they're doing, presenting it to their instructor, getting told that the code is wrong and changing it to a proper bubble or selection sort without suspecting a thing.