diff --git a/scripts-local.html b/scripts-local.html index 7465a06..6e87772 100644 --- a/scripts-local.html +++ b/scripts-local.html @@ -210,8 +210,8 @@ if (!b["Date Added"]) return -1; // Convert date strings to Date objects for comparison - const dateA = new Date(a["Date Added"]); - const dateB = new Date(b["Date Added"]); + const dateA = new Date(a["Date Added"].replace(/-/g, "/")); + const dateB = new Date(b["Date Added"].replace(/-/g, "/")); // Compare the dates if (dateA < dateB) return 1;