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

import mx.collections.CursorBookmark;
import mx.collections.IList;
import mx.collections.IViewCursor;
import mx.collections.Sort;
import mx.collections.SortField;
import mx.core.mx_internal;

    private var iterator:IViewCursor = null;

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

	//Cube builder instance
    private var nodeBuilder:CubeNodeBuilder;
