/[xmltv_parser]/trunk/libxmltv/Core/XMLTV.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTV.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTV.cs	2013/03/13 14:39:08	130
+++ trunk/libxmltv/Core/XMLTV.cs	2013/03/13 15:16:59	131
@@ -152,7 +152,7 @@
             if (filter == null) { throw new InvalidCastException(string.Format("Cannot cast: '{0}' to '{1}'", source.GetType().Name, typeof(IDataSourceFilterable).Name)); }
             filter.Filter(ref source, args);            
         }
-        public static void CreateSorterFromDataSource(ref object source, params string[] args)
+        public static void CreateSorterFromDataSource(ref object source, bool descending, params string[] args)
         {
             if (source == null) { throw new ArgumentNullException("source", "cannot be null"); }
             object t = ConvertSourceType(source.GetType(), source);
@@ -161,7 +161,7 @@
             source = t;
             IDataSourceSortable sorter = (source as IDataSourceSortable);
             if (sorter == null) { throw new InvalidCastException(string.Format("Cannot cast: '{0}' to '{1}'", source.GetType().Name, typeof(IDataSourceSortable).Name)); }
-            sorter.Sort(ref source, args);            
+            sorter.Sort(ref source, descending, args);            
         }
         #endregion
         #endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22