Dataset Filtering Issues

I’m trying to convince a dataset to sort, and having many problems. I’m using hte following function:

function selectCoverage( option:String ):Void { 
   //xmlDataSet.filtered = false; 
   if( dataFilter == option ) { 
      dataFilter = ""; 
   } else { 
      xmlDataSet.filtered = true; 
      xmlDataSet.filterFunc = function( item:Object ) { 
         trace( item.coverage.attributes.type == option ); 
         return( item.coverage.attributes.type == option ); 
      } 
      dataFilter = option; 
   } 
   ListBox.removeAll(); 
   //xmlDataSet.refreshDestinations(); 
   ListBox.refreshFomSources(); 
   ListBox.sortItemsBy( "label", "ASC" ); 
}

I know it’s returning the proper boolean values, but the list the receives the results isn’t changing at all. If I uncomment the “xmlDataSet.filtered = false” line, it doesn’t filter, but toggles the alphabetical sorting on and off. Anyone have any thoughts?

Rys