mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-21 15:16:33 -04:00
Added a sorting mechanism to emulate how windows sorts files. Refactored cache to support chapter folders as well.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user