Jacek Kowalski
2019-06-22 3c86810a389fb40a6f3b472915a6b6912a77279b
Sort vehicles by number in "vehicles by type" table
1 files modified
6 ■■■■■ changed files
lib/output.php 6 ●●●●● patch | view | raw | blame | history
lib/output.php
@@ -35,6 +35,12 @@
    }
    unset($line);
    ksort($lines);
    foreach($vehicles as &$vehicle) {
        usort($vehicle, function($a, $b) {
            return (substr($a['num'] ?? '', 2) <=> substr($b['num'] ?? '', 2));
        });
    }
    unset($vehicle);
    ksort($vehicles);
    
    if($saveConfig) {