<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Sort Chart of Accounts by name]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7134</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7134&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sort Chart of Accounts by name.]]></description>
		<lastBuildDate>Sun, 19 Nov 2017 07:13:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sort Chart of Accounts by name]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29668#p29668</link>
			<description><![CDATA[<p><a href="https://github.com/FrontAccountingERP/FA/commit/4a69b00fd33fac15b82e68ef3e6a5cdae8bd6088">Committed</a>.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 19 Nov 2017 07:13:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29668#p29668</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sort Chart of Accounts by name]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29667#p29667</link>
			<description><![CDATA[<p>The following fixes it:<br /></p><div class="codebox"><pre><code>--- admin/inst_chart.php    Thu Nov 12 03:19:51 2015
+++ admin/inst_chart.php    Sun Nov 19 12:15:49 2017
@@ -42,6 +42,10 @@
     install_extension($id);
 
 //---------------------------------------------------------------------------------------------
+function sortByOption($a, $b) {
+    return strcmp($a[&#039;name&#039;], $b[&#039;name&#039;]);
+}
+
 start_form(true);
 
     div_start(&#039;ext_tbl&#039;);
@@ -52,6 +56,8 @@
         display_note(_(&quot;No optional chart of accounts is currently available.&quot;));
     else
     {
+        uasort($mods, &#039;sortByOption&#039;);
+
         $th = array(_(&quot;Chart&quot;),  _(&quot;Installed&quot;), _(&quot;Available&quot;), _(&quot;Encoding&quot;), &quot;&quot;, &quot;&quot;);
         $k = 0;
 </code></pre></div><p>@joe: would you like to commit it?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 19 Nov 2017 06:55:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29667#p29667</guid>
		</item>
		<item>
			<title><![CDATA[Sort Chart of Accounts by name]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29663#p29663</link>
			<description><![CDATA[<p>When we are installing Charts of Accounts, as the list is long and many non standard custom ones with numerical indices will be available in the array of charts details that countries with a set of charts will be far apart making searching difficult.</p><p>Unlike languages which must start with the lang code, the charts can pretty much be anything, the name comes in handy when it denotes the country primarily though some start with number of digits in the account code.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 18 Nov 2017 17:18:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29663#p29663</guid>
		</item>
	</channel>
</rss>
