in reply to EOF required before writing DB?

I am not a database guru, but I think there's all right so. If you query a table, the order you will get will mostly be accidentally, so that you can't rely on a fixed order. But SQL has very good means to prevent this and deliver data in a sorted way, e.g.
SELECT * FROM table ORDER BY id
I just hope that somebody will answer here who will really know it, and not just guess like I have to :-)

Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"