From: Moritz Bunkus Date: Tue, 24 Feb 2015 12:58:53 +0000 (+0100) Subject: JavaScript-Tests: Liste der Testdateien sortieren X-Git-Tag: release-3.2.0~13^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4e68be5050c432d977359c3beb3d159c0bca9cda;p=kivitendo-erp.git JavaScript-Tests: Liste der Testdateien sortieren --- 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 {