Index: filefield.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield.install,v retrieving revision 1.41 diff -u -r1.41 filefield.install --- filefield.install 6 Dec 2010 00:30:06 -0000 1.41 +++ filefield.install 9 Dec 2010 17:36:27 -0000 @@ -308,7 +308,7 @@ // Work our way through the field values 50 rows at a time. $limit = 50; - $result = db_query_range("SELECT * FROM {{$context['sandbox']['table']}} WHERE vid > %d ORDER BY nid ASC", $context['sandbox']['current_node'], 0, $limit); + $result = db_query_range("SELECT * FROM {{$context['sandbox']['table']}} WHERE vid > %d ORDER BY vid ASC", $context['sandbox']['current_node'], 0, $limit); while ($row = db_fetch_array($result)) { // Try to unserialize the data column. if (!empty($row[$context['sandbox']['col_data']])) {