Files
hamann-ausgabe-core/HaDocumentV6/Comparers/CommentComparer.cs
2022-05-17 01:21:10 +02:00

15 lines
453 B
C#

using System.Collections.Generic;
using System.Collections;
using System.Linq;
using HaDocument.Models;
namespace HaDocument.Comparers {
public class CommentComparer : IComparer<Comment> {
public int Compare(Comment first, Comment second) {
if (first.Order != second.Order)
return first.Order.CompareTo(second.Order);
else
return first.Index.CompareTo(second.Index);
}
}
}