rem: eeDs.setDefaultSort('classLabel'); 
add: eeDs.setDefaultSort('className'); 
context: Ext.onReady(function() {		var admin = dwr.util.getValue("auditableId");  // will only be present for admin user		var id = dwr.util.getValue("eeId");	var clazz = dwr.util.getValue("eeClass");		// classDelegatingFor is the ExpressionExperiment class.	var g = {id:id, classDelegatingFor:clazz};		var eeRecordType = Ext.data.Record.create([		{name:"id", type:"int"},		{name:"className", type:"string"}, 		{name:"termName", type:"string"}]);			eeDs = new Ext.data.Store(		{		proxy:new Ext.data.DWRProxy(ExpressionExperimentController.getAnnotation), 		reader:new Ext.data.ListRangeReader({id:"id"}, eeRecordType), 		remoteSort:false		});	eeDs.setDefaultSort('classLabel');		var cm = new Ext.grid.ColumnModel([			{header: "Class",  width: 150, dataIndex:"className"}, 			{header: "Term", width: 500, dataIndex:"termName" }]);	cm.defaultSortable = false; 	eeGrid = new Ext.grid.Grid("eeAnnotations", {		ds:eeDs,		cm:cm,		loadMask: true,		autoExpandColumn: 1	});	eeGrid.render();		eeDs.load({params:[g]});		});
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/cf40651a6391300368ec35cc1923b82040a5dc7e/eeAnnotations.js/buggy/gemma-web/src/main/webapp/scripts/ajax/eeAnnotations.js