From: Joe Hunt Date: Sun, 19 Nov 2017 07:12:28 +0000 (+0100) Subject: Sort Chart of Accounts by name. Fixed. X-Git-Tag: v2.4.4~56 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=4a69b00fd33fac15b82e68ef3e6a5cdae8bd6088;p=fa-stable.git Sort Chart of Accounts by name. Fixed. --- diff --git a/admin/inst_chart.php b/admin/inst_chart.php index 05165fbf..a1e24dac 100644 --- a/admin/inst_chart.php +++ b/admin/inst_chart.php @@ -42,6 +42,11 @@ if ($id = find_submit('Update', false)) install_extension($id); //--------------------------------------------------------------------------------------------- + +function sortByOption($a, $b) { + return strcmp($a['name'], $b['name']); +} + start_form(true); div_start('ext_tbl'); @@ -52,6 +57,8 @@ start_form(true); display_note(_("No optional chart of accounts is currently available.")); else { + uasort($mods, 'sortByOption'); + $th = array(_("Chart"), _("Installed"), _("Available"), _("Encoding"), "", ""); $k = 0;