Exemplo n.º 1
0
        public static String[] SortList(CCEnums.CompareTypeEnm sortType, params String[] filePaths)
#endif
        {
            try
            {
                List <String> files = new List <String>(filePaths);
                files.Sort(new FlexListComparer(sortType, false));
                return(files.ToArray());
            }
            catch (Exception ex)
            {
                ILog.LogError(ex);
            }
            return(new String[0]);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sort an array by date.
        /// </summary>
        /// <param name="filePaths">the file path\s to add</param>
#if INTERNAL
        internal static String[] SortList(CCEnums.CompareTypeEnm sortType, params String[] filePaths)
Exemplo n.º 3
0
 public FlexListComparer(CCEnums.CompareTypeEnm compareType, bool descendingOrder)
     : this((int)compareType, descendingOrder)
 {
 }