 		protected function dataGridSortChangingHandler(event:GridSortEvent):void {
 			//avoid client sorting, perform the sorting by server side
 			event.preventDefault();
-			var newSortFields:Array = event.newSortFields;
-			var sortField:SortField = newSortFields[0];
-			currentOrderByFieldName = sortField.name;
-			loadRecordSummariesCurrentPage();
-		}
+			var oldSortFields:IList = currentSortFields;
+			currentSortFields = RecordSummaryDataGrid.createRecordSummarySortFields(event.newSortFields, oldSortFields);;
+			
+			loadRecordSummariesCurrentPage();
+		}
+		
+		
 	}
 }
	import org.openforis.collect.i18n.Message;
	import org.openforis.collect.metamodel.proxy.EntityDefinitionProxy;
	import org.openforis.collect.metamodel.proxy.ModelVersionProxy;
	import org.openforis.collect.model.proxy.RecordProxy;
	import org.openforis.collect.ui.UIBuilder;
	import org.openforis.collect.ui.component.SelectVersionPopUp;
	import org.openforis.collect.ui.component.datagrid.PaginationBar;
	import org.openforis.collect.ui.view.ListView;
	import org.openforis.collect.util.AlertUtil;
	import org.openforis.collect.util.CollectionUtil;
	import org.openforis.collect.util.StringUtil;
	
	import spark.collections.SortField;
	import spark.events.GridSortEvent;


	 * */
	import flash.display.DisplayObject;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import mx.collections.ArrayCollection;
	import mx.collections.IList;
	import mx.collections.ListCollectionView;
	import mx.core.FlexGlobals;
