2007-01-06  Tom Tromey  <tromey@redhat.com>

	Bug #144107:
	* manager.c (update_save_state): Sort save finished list.
	(reverse_priority): New function.

Index: manager.c
===================================================================
--- manager.c	(revision 4196)
+++ manager.c	(working copy)
@@ -1430,6 +1430,9 @@
 
 	  maybe_write_session ();
 
+	  save_finished_list
+	    = g_slist_reverse (g_slist_sort (save_finished_list,
+					     compare_priority));
 	  for (list = save_finished_list; list;)
 	    {
 	      Client *client = list->data;
