Initial replacement of old repository.

This commit is contained in:
Simon Martens
2021-09-15 13:31:10 +02:00
commit 3125edf027
222 changed files with 582725 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HaDocument.Models;
namespace HaDocument.Comparers
{
public class DefaultComparer : IComparer<Meta>
{
public int Compare(Meta first, Meta second)
{
if (first.Sort != second.Sort)
return System.DateTime.Compare(first.Sort, second.Sort);
else if (first.Order != second.Order)
return first.Order.CompareTo(second.Order);
else
return String.Compare(first.Index, second.Index);
}
}
}