diff --git a/index.php b/index.php
index 44c0ca3..1a1772b 100644
--- a/index.php
+++ b/index.php
@@ -1,9 +1,9 @@
[
- 'index' => __DIR__,
- ],
- ]))->render();
\ No newline at end of file
+echo (new Kirby([
+ 'roots' => [
+ 'index' => __DIR__,
+ ],
+]))->render();
\ No newline at end of file
diff --git a/site/config/config.php b/site/config/config.php
index e1fe667..00828c1 100644
--- a/site/config/config.php
+++ b/site/config/config.php
@@ -1,5 +1,5 @@
true,
- ];
\ No newline at end of file
+return [
+ 'debug' => true,
+];
\ No newline at end of file
diff --git a/site/snippets/dwz.php b/site/snippets/dwz.php
index a9981ef..9be1f99 100644
--- a/site/snippets/dwz.php
+++ b/site/snippets/dwz.php
@@ -1,54 +1,84 @@
$dwzA;
- });
- }
+function safe($val)
+{
+ return $val === null || $val === false || $val === '' || $val === 'N'
+ ? '-' : htmlspecialchars($val);
+}
+
+// Nach DWZ absteigend sortieren
+if ($players && is_array($players)) {
+ usort($players, function ($a, $b) {
+ $dwzA = isset($a['dwz']) && is_numeric($a['dwz']) ? (int)$a['dwz']
+ : 0;
+ $dwzB = isset($b['dwz']) && is_numeric($b['dwz']) ? (int)$b['dwz']
+ : 0;
+
+ return $dwzB <=> $dwzA;
+ });
+}
?>
+