MySQL table behaving badly

I would probably know what’s wrong with this had I a tad more experience, but here’s my problem:

As you can see, some of the inserts in the table manage to get inserted in random places. I assign an ID on each insert (auto increment), but does anyone know why the inserts just place themselves wherever they want ?

(by the way I manually deleted some entries)

I managed to sort by ID in phpMyAdmin, but it still puzzles me =)

I’ll post the insert code, but nothing’s too special with it

mlk