From a255d6af5519895fa22d592dcff06944111abba3 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sat, 22 Jun 2019 20:54:28 +0000 Subject: [PATCH] Update tram types: all N8C/N8S are partially low-floor now --- lib/output.php | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/output.php b/lib/output.php index 0743017..fe7b73e 100644 --- a/lib/output.php +++ b/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) { -- Gitblit v1.9.1