Index: trunk/wp-admin/js/gallery.js
===================================================================
--- trunk/wp-admin/js/gallery.js	(revision 8258)
+++ trunk/wp-admin/js/gallery.js	(working copy)
@@ -10,7 +10,7 @@
 
 	// When an update has occurred, adjust the order for each item
 	var galleryReorder = function(e, sort) {
-		jQuery.each(sort['instance'].toArray(), function(i, id) {
+		jQuery.each(sort['element'].sortable('toArray'), function(i, id) {
 			jQuery('#' + id + ' .menu_order input')[0].value = i;
 		});
 	}

