mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 18:47:05 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			350 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			350 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections;
 | |
| 
 | |
| namespace API.Comparators
 | |
| {
 | |
|     public class NumericComparer : IComparer
 | |
|     {
 | |
| 
 | |
|         public int Compare(object x, object y)
 | |
|         {
 | |
|             if((x is string xs) && (y is string ys))
 | |
|             {
 | |
|                 return StringLogicalComparer.Compare(xs, ys);
 | |
|             }
 | |
|             return -1;
 | |
|         }
 | |
|     }
 | |
| } |