PHP / SQL插入到表的中间?

Recently, I had to modify my php.ini file for the first time to change allow_url_fopen, but my particular web host needed me to create a new php.ini to modify any of its default settings. So I did, and all it contains now is allow_url_fopen = 1, and all was well with the world.

But now I'm getting weird behavior when inserting new rows in my MySql table. I did not change any PHP or SQL related to this, but now when I insert a new row, it is inserted somewhere in the middle of the table, rather than at the end of the table. I've been using the same code for months now and it's been working fine up until now.

Could creating a new php.ini file have messed with these preferences somehow? Searching through the internet turned up with absolutely nothing.

Edit: There is a rather clear pattern now: Rows by ID are being placed like this at the end of the table:

+-----+
| id  |
+-----+
| 300 |
| 301 |
| 302 |
| 320 |
| 319 |
| 318 |
| 317 |
| 316 |
| 315 |
| 314 |
+-----+

...and so on.

You can sort them by clicking on ID in phpmyadmin or for a resort try this:

ALTER TABLE `table` ORDER BY `id` ;