From 4e68be5050c432d977359c3beb3d159c0bca9cda Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 24 Feb 2015 13:58:53 +0100 Subject: [PATCH] JavaScript-Tests: Liste der Testdateien sortieren --- SL/Controller/JSTests.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Controller/JSTests.pm b/SL/Controller/JSTests.pm index 1c8a67bd2..b3da9f24b 100644 --- a/SL/Controller/JSTests.pm +++ b/SL/Controller/JSTests.pm @@ -6,6 +6,7 @@ use parent qw(SL::Controller::Base); use File::Find (); use File::Spec (); +use List::UtilsBy qw(sort_by); use SL::System::Process; @@ -42,7 +43,7 @@ sub init_all_scripts { File::Find::find($wanted, $exe_dir . '/js/t'); - return \@scripts; + return [ sort_by { lc } @scripts ]; } sub init_scripts_to_run { -- 2.20.1