projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fef446
)
Sort Chart of Accounts by name. Fixed.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 19 Nov 2017 07:12:28 +0000
(08:12 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 19 Nov 2017 07:12:28 +0000
(08:12 +0100)
admin/inst_chart.php
patch
|
blob
|
history
diff --git
a/admin/inst_chart.php
b/admin/inst_chart.php
index 05165fbf5c5c97fcaec168d0a731b559a7e7d13a..a1e24dacd2911e6ee10e36e80d554456263ae886 100644
(file)
--- 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;