 				for (i=0; i<_orderby.length; ++i)
 					s.push(_orderby[i]);
 			}
-			return s.length==0 ? null : Sort.sorter(s);
+			return s.length==0 ? null : new Sort(s);
 		}
 		
 		private function aggregates():Array

				});
			}
			// sort the result set
			if (_sorter != null) {
				Sort.sort(results, _sorter);
			}
			
			if (_select == null) return results;

			_where = where;
			_orderby = orderby;
			_groupby = groupby;
			_sort = sorter();
			_aggrs = aggregates();
		}
		
		private function sorter():Sort
		{
			var s:Array = [], i:int;
			if (_groupby != null) {
