When you do these manual inserts of data, are you dumping the database to a file and then adding the data and then rebuilding the database. I have never had your problem when I dumped then added and then rebuilt. I know it is not a problem of sorting, but I know that what someone else said is true, it is not written anywhere that the id field is to be in ascending order. By dumping with the command--> c:\mysql\bin\MYSQLDUMP 'databasename' > dumpinfo.txt , you get a text file with all the database structure listed:
CREATE TABLE table1 (
id int(20) NOT NULL auto_increment,
user char(15) NOT NULL,
etc....
.....
....
and so on with all the data after that in comma delimited strings:
INSERT INTO table1 VALUES('1','b','c');
INSERT INTO table1 VALUES('2','b','c');
etc.......
I just add the data I need or will be needing for testing on to the insert into's and put it all back together with a:
MYSQL DATABASENAME < dumpedinfo.txt
away you go!
When you go to add another record the regular way, the last id value is pulled when a null value is attempted to be inserted into a NOT NULL mysql field ID CHAR(22) NOT NULL and mysql does the rest,increment the value and insert the new value in the new record. I never have problems, it takes up right where it should.