mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-30 01:35:32 +00:00 
			
		
		
		
	Initial replacement of old repository.
This commit is contained in:
		
							
								
								
									
										15
									
								
								HaDocument/Comparers/CommentComparer.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								HaDocument/Comparers/CommentComparer.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| 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); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens