Example #1
0
        private static int InternalHistorySort(TrashProfileEntry a, TrashProfileEntry b)
        {
            if (a == null && b == null)
            {
                return(0);
            }

            if (a == null)
            {
                return(1);
            }

            if (b == null)
            {
                return(-1);
            }

            if (a.TrashedTime < b.TrashedTime)
            {
                return(1);
            }

            if (a.TrashedTime > b.TrashedTime)
            {
                return(-1);
            }

            return(0);
        }
Example #2
0
		private static int InternalHistorySort(TrashProfileEntry a, TrashProfileEntry b)
		{
			if (a == null && b == null)
			{
				return 0;
			}

			if (a == null)
			{
				return 1;
			}

			if (b == null)
			{
				return -1;
			}

			if (a.TrashedTime < b.TrashedTime)
			{
				return 1;
			}

			if (a.TrashedTime > b.TrashedTime)
			{
				return -1;
			}

			return 0;
		}