There is a display_order column in the pg1_gallery_images table that controls the order. The page shouldn't jump up to the top when you drag/drop, what browser are you using? During import, PHP basically reads through your directory and imports in the order PHP gives which normally should be alphabetical, but in your case it might have ordered it by modification date or another file property.
-justin