                 newSort = new Sort;
                 var fields:Array = [];
                 
-                var field:SortField ;
+                var field:ISortField ;
                 for each (level in levels)
                 {
                 	if (level.attribute && level.attribute.userDataFunction)

    private var iterator:IViewCursor = null;

	//saved sort value
    private var oldSort:Sort;
    
    //sort object used to gather members of dimensions 
    private var newSort:Sort;

	//Cube builder instance
    private var nodeBuilder:CubeNodeBuilder;

        }
        
        // sort the data as it makes decision about completion of handling
        var newSort:ISort = new Sort;
        var fields:Array = [];
        
        for each (var level:OLAPLevel in levels)
        {
            var field:ISortField = new SortField(level.dataField);
            fields.push(field);
        }
        
