Index: views.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views/views.module,v retrieving revision 1.328 diff -u -p -r1.328 views.module --- views.module 30 Jan 2009 01:26:55 -0000 1.328 +++ views.module 15 Mar 2009 16:58:05 -0000 @@ -1143,6 +1143,9 @@ function views_views_exportables($op = ' $code .= " */\n"; $code .= "function " . $name . "_views_default_views() {\n"; foreach ($views as $view => $truth) { + $code .= " /*\n"; + $code .= " * view ". var_export($all_views[$view]->name, TRUE) ."\n"; + $code .= " */\n"; $code .= $all_views[$view]->export(' '); $code .= ' $views[$view->name] = $view;' . "\n\n"; } Index: views_export/views_export.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views/views_export/views_export.module,v retrieving revision 1.3 diff -u -p -r1.3 views_export.module --- views_export/views_export.module 2 Dec 2008 16:12:50 -0000 1.3 +++ views_export/views_export.module 15 Mar 2009 16:59:08 -0000 @@ -178,6 +178,7 @@ function views_export_export_form_submit foreach ($form_state['values']['modules'] as $module => $views) { $views = array_filter($views); + asort($views); if ($views) { $code .= module_invoke($module, 'views_exportables', 'export', $views, $form_state['values']['name']) . "\n\n"; }