Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

307 B
Raw Blame
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;
    }
}