<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Order QueryTask results? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498904#M46379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was it ever determined if the ordering could be achieved?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 14:33:35 GMT</pubDate>
    <dc:creator>PeteVitt</dc:creator>
    <dc:date>2010-12-15T14:33:35Z</dc:date>
    <item>
      <title>Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498902#M46377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to order QueryTask results?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a query and query tasks setup to return a featureset of polylines and I'd like to have them ordered by shape.len.&amp;nbsp; Is that possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 20:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498902#M46377</guid>
      <dc:creator>TimLowrimore</dc:creator>
      <dc:date>2010-04-16T20:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498903#M46378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same questions. I'd also like to limit the query results to the first 10. I can't find any documentation on this. I tried using normal SQL query syntax but that failed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 17:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498903#M46378</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2010-05-19T17:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498904#M46379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was it ever determined if the ordering could be achieved?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 14:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498904#M46379</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2010-12-15T14:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498905#M46380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I found to do this was to insert the query results into a javascript multidimensional array.&amp;nbsp; You can then sort the array on a column and access the rows in the array if that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 09:35:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498905#M46380</guid>
      <dc:creator>MarkSmith</dc:creator>
      <dc:date>2010-12-16T09:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498906#M46381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to order QueryTask results?&lt;BR /&gt;&lt;BR /&gt;I have a query and query tasks setup to return a featureset of polylines and I'd like to have them ordered by shape.len.&amp;nbsp; Is that possible?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this: query.where = " your where clause.. ORDER BY SHAPE.LEN"; Note: only work on 9.3.1 above&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 19:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498906#M46381</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2010-12-16T19:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498907#M46382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try this: query.where = " your where clause.. ORDER BY SHAPE.LEN"; Note: only work on 9.3.1 above&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So has anyone confirmed that this works?&amp;nbsp; I'm trying this and it doesn't seem to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 21:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498907#M46382</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2011-03-14T21:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498908#M46383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So has anyone confirmed that this works?&amp;nbsp; I'm trying this and it doesn't seem to work.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used ORDER BY in you code a couple of times and I have no problem with it. It is an added feature on 9.3.1. I don't see why it would not work on 10...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498908#M46383</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-03-15T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498909#M46384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I used ORDER BY in you code a couple of times and I have no problem with it. It is an added feature on 9.3.1. I don't see why it would not work on 10...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so can you show an example of your code?&amp;nbsp; i'm not so sure if the problem lies with ver 9.3.1 or ver 10.. the problem lies with the version of the API...&amp;nbsp; I'm using v2.2 of the Javascript API .... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;here's my code and it just dies at the "query.where" line...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if i take out the ".. ORDER BY" and just use query.where = "ACTIVE = 'Y'" then it works without a hitch&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var queryTask = new esri.tasks.QueryTask(serviceURL + "/" + index);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = ["INDEX", "ADDRESS", "ZIP"];
 query.where = "ACTIVE = 'Y'.. ORDER BY INDEX";
 queryTask.execute(query,queryResults);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498909#M46384</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2021-12-11T21:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498910#M46385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;so can you show an example of your code?&amp;nbsp; i'm not so sure if the problem lies with ver 9.3.1 or ver 10.. the problem lies with the version of the API...&amp;nbsp; I'm using v2.2 of the Javascript API .... &lt;BR /&gt;here's my code and it just dies at the "query.where" line...&lt;BR /&gt;if i take out the ".. ORDER BY" and just use query.where = "ACTIVE = 'Y'" then it works without a hitch&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var queryTask = new esri.tasks.QueryTask(serviceURL + "/" + index);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = ["INDEX", "ADDRESS", "ZIP"];
 query.where = "ACTIVE = 'Y'.. ORDER BY INDEX";
 queryTask.execute(query,queryResults);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what is the two dots for in your code ".. ORDER BY INDEX"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498910#M46385</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T21:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Order QueryTask results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498911#M46386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what is the two dots for in your code ".. ORDER BY INDEX"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;ah crap... (i think i need to take a break from coding for a bit)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 15:25:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-querytask-results/m-p/498911#M46386</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2011-03-16T15:25:10Z</dc:date>
    </item>
  </channel>
</rss>

