<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: How to Alphabetically sort concat information</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: How to Alphabetically sort concat information</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 11:28:56 +0000</pubDate>

<item>
<title>Machmail on "How to Alphabetically sort concat information"</title>
<link>https://www.machform.com/forums/topic/how-to-alphabetically-sort-concat-information#post-12410</link>
<pubDate>Sat, 30 Jul 2011 20:45:54 +0000</pubDate>
<dc:creator>Machmail</dc:creator>
<guid isPermaLink="false">12410@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I'd like to buy this script, but this solution works?
&#60;/p&#62;</description>
</item>
<item>
<title>redluss on "How to Alphabetically sort concat information"</title>
<link>https://www.machform.com/forums/topic/how-to-alphabetically-sort-concat-information#post-8509</link>
<pubDate>Tue, 26 Jan 2010 23:02:37 +0000</pubDate>
<dc:creator>redluss</dc:creator>
<guid isPermaLink="false">8509@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for this post - very exciting. &#60;/p&#62;
&#60;p&#62;I did find one issue in the code - you need to remove the &#60;em&#62; from the top section of code as it's not supposed to be there - it was falsely translated by the help forum.&#60;br /&#62;
However, as a novice at PHP, could you post a little more detail as to where the code under &#34;Then change where the query is formed&#34; is supposed to go? I'm having a hard time figuring out where the query should be inserted into the code.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>isak on "How to Alphabetically sort concat information"</title>
<link>https://www.machform.com/forums/topic/how-to-alphabetically-sort-concat-information#post-8495</link>
<pubDate>Tue, 26 Jan 2010 02:31:02 +0000</pubDate>
<dc:creator>isak</dc:creator>
<guid isPermaLink="false">8495@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Can you make this a little clearer? I could definitely use it.&#60;/p&#62;
&#60;p&#62;I think my problem is in the query section. Maybe I am not setting it up right. Perhaps you could include more of the code for this section so I can see how to add it and where?&#60;/p&#62;
&#60;p&#62;About the &#60;em&#62; tags  -- omit them? Include them? &#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>meltingsand on "How to Alphabetically sort concat information"</title>
<link>https://www.machform.com/forums/topic/how-to-alphabetically-sort-concat-information#post-8351</link>
<pubDate>Sat, 09 Jan 2010 05:59:39 +0000</pubDate>
<dc:creator>meltingsand</dc:creator>
<guid isPermaLink="false">8351@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I tried to bold my section and it didn't work.  Everything between the &#34;&#60;em&#62;&#34; tags is what I changed.
&#60;/p&#62;</description>
</item>
<item>
<title>meltingsand on "How to Alphabetically sort concat information"</title>
<link>https://www.machform.com/forums/topic/how-to-alphabetically-sort-concat-information#post-8350</link>
<pubDate>Sat, 09 Jan 2010 05:49:56 +0000</pubDate>
<dc:creator>meltingsand</dc:creator>
<guid isPermaLink="false">8350@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I just figured out a way to sort the data, and it is pretty easy.  Now I can just click on a column heading to sort that field, and click again to sort in the reverse order.  I'll paste my code real quick.  I've done some other modifications so I can't give you line numbers since they'll be wrong.  I'll paste what I have, and you should be able to find it pretty easily.&#60;/p&#62;
&#60;p&#62;In file manage_entries.php:&#60;/p&#62;
&#60;p&#62;Look for this code (I have bolded what I changed):&#60;/p&#62;
&#60;p&#62;    //print table header&#60;br /&#62;
  foreach ($column_label as $table_header){&#60;br /&#62;
    if($table_header['name'] == 'id'){&#60;br /&#62;
      echo '&#38;lt;th scope=&#34;col&#34; class=&#34;me_action&#34;&#38;gt;'.$table_header['label'].'&#38;lt;/th&#38;gt;';&#60;br /&#62;
    }elseif ($table_header['name'] == 'row_num'){&#60;br /&#62;
      echo '&#38;lt;th scope=&#34;col&#34; class=&#34;me_number&#34;&#38;gt;'.$table_header['label'].'&#38;lt;/th&#38;gt;';&#60;br /&#62;
    }else{&#60;br /&#62;
      &#60;code&#62;&#38;lt;em&#38;gt;&#60;/code&#62;if ($order == &#34;desc&#34;) { $reverse = &#34;asc&#34;; } else { $reverse = &#34;desc&#34;;}&#60;br /&#62;
      if ($sort == $table_header['name']) { $sortid = &#34;sortfield&#34;; } else { $sortid = &#34;sort&#34;; }&#60;br /&#62;
      echo '&#38;lt;th scope=&#34;col&#34; id=&#34;'.$sortid.'&#34;&#38;gt;&#38;lt;div&#38;gt;&#60;a href=&#34;'.$PHP_SELF.'?id=1&#38;#38;sort='.$table_header['name'].'&#38;#38;order='.$reverse.'&#34;&#62;'.$table_header['label'].'&#60;/a&#62;&#38;lt;/div&#38;gt;&#38;lt;/th&#38;gt;'; &#60;code&#62;&#38;lt;/em&#38;gt;&#60;/code&#62;&#60;br /&#62;
    }&#60;/p&#62;
&#60;p&#62;then change where the query is formed:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;em&#38;gt;&#60;/code&#62;  if (!isset($sort)) $sort=&#34;id&#34;;&#60;br /&#62;
  if (!isset($order)) $order=&#34;desc&#34;;&#60;br /&#62;
&#60;code&#62;&#38;lt;/em&#38;gt;&#60;/code&#62;&#60;br /&#62;
  $field_list = implode(',',$column_prefs);&#60;br /&#62;
&#60;code&#62;&#38;lt;em&#38;gt;&#60;/code&#62;&#60;br /&#62;
  $query  = &#34;select id,id as row_num,{$field_list} from &#60;code&#62;ap_form_{$form_id}&#60;/code&#62; order by $sort $order $limit&#34;;&#60;br /&#62;
&#60;code&#62;&#38;lt;/em&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "How to Alphabetically sort concat information"</title>
<link>https://www.machform.com/forums/topic/how-to-alphabetically-sort-concat-information#post-6547</link>
<pubDate>Sat, 11 Jul 2009 13:39:21 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">6547@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sorry, I'm afraid there is no easy way to sort the entries yet.&#60;br /&#62;
At this moment, you can do this by exporting the entries into excel file and sort it there.
&#60;/p&#62;</description>
</item>
<item>
<title>hareem on "How to Alphabetically sort concat information"</title>
<link>https://www.machform.com/forums/topic/how-to-alphabetically-sort-concat-information#post-6529</link>
<pubDate>Thu, 09 Jul 2009 23:29:43 +0000</pubDate>
<dc:creator>hareem</dc:creator>
<guid isPermaLink="false">6529@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello. MachForm is a great product.It saved me a lot of headaches. I would like to know how can i sort my contacts forms info alphabetically.&#60;/p&#62;
&#60;p&#62;Please help&#60;/p&#62;
&#60;p&#62;Humble Regards&#60;br /&#62;
Hareem Haque
&#60;/p&#62;</description>
</item>

</channel>
</rss>
