<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>16 Feb 2015 19:46:00 Z</lastBuildDate><pubDate>15 Feb 2015 12:46:00 Z</pubDate><description>Hi&#13;
&#13;
I need to select which field to sort by, by passing a parameter. Is this possible?&#13;
If a query has two fields ( code and description), sometimes I need to sort by code some times by descrtiption.&#13;
Do I need to create two queries?&#13;
I cannot use an array as this query is going into an array of structures and arraysort does not work.&#13;
&#13;
&#13;
Thank&#13;
Noel</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort/read.awp</link><title>WD19 - Query Sort</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50513/read.awp</comments><pubDate>16 Feb 2015 19:46:00 Z</pubDate><description>Quote&#13;
Arie Mars&#13;
&#13;
Noel,&#13;
&#13;
you can provide the "sort" you need as a parameter. Just like where-parameters.&#13;
&#13;
If you open the …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50513/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50513/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort/read.awp">WD19 - Query Sort</source><title>Re: WD19 - Query Sort</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50491/read.awp</comments><pubDate>15 Feb 2015 14:17:00 Z</pubDate><description>Thanks. will try the sort on parameter</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50491/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50491/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort/read.awp">WD19 - Query Sort</source><title>Re: WD19 - Query Sort</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50490/read.awp</comments><pubDate>15 Feb 2015 13:09:00 Z</pubDate><description>Noel,&#13;
you can provide the "sort" you need as a parameter. Just like where-parameters.&#13;
If you open the queyr in the designer, j…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50490/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50490/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort/read.awp">WD19 - Query Sort</source><title>Re: WD19 - Query Sort</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50489/read.awp</comments><pubDate>15 Feb 2015 13:05:00 Z</pubDate><description>hi Noel&#13;
&#13;
Yes you can edit the query and set the sort as a parameter&#13;
&#13;
SELECT *&#13;
FROM Table&#13;
WHERE&#13;
table.field1 = {pField1}&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50489/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort-50489/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50486-wd19-query-sort/read.awp">WD19 - Query Sort</source><title>Re: WD19 - Query Sort</title></item></channel></rss>
