diff --git a/templates/frontpage.html b/templates/frontpage.html index 5e6e4a8..0f94f2a 100644 --- a/templates/frontpage.html +++ b/templates/frontpage.html @@ -4,6 +4,12 @@ Responsive Grid + + + + + +
- - - - - +
+ + + + +
@@ -130,10 +150,9 @@ function dynamicSort(className) { var textA = a.getElementsByClassName(className)[0].textContent.trim(); var textB = b.getElementsByClassName(className)[0].textContent.trim(); - // Remove "-1" suffix if present - textA = textA.replace(/-1$/, '').trim(); - textB = textB.replace(/-1$/, '').trim(); - + // Remove digits after hyphen if present + textA = textA.replace(/-\d+$/, '').trim(); + textB = textB.replace(/-\d+$/, '').trim(); // If text1 is an integer, parse it as a number if (!isNaN(textA) && !isNaN(textB)) { var result = parseInt(textA) - parseInt(textB);