<?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 By Fields not working in  ArcGIS Server 10.1. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296238#M27205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mudit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Because you are using ArcGIS Server 10.1 you do have the ability to use the Order by Fields property. Here is an example of how it is used:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14114754860532662 jive_text_macro" jivemacro_uid="_14114754860532662" modifiedtitle="true"&gt;
&lt;P&gt;query.orderByFields = ["STATE_NAME DESC"];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Not sure how you are try to do this without seeing your code, but it sounds like you are trying to add a ORDER BY to your Where clause and this is not supported.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 12:33:10 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-09-23T12:33:10Z</dc:date>
    <item>
      <title>Order By Fields not working in  ArcGIS Server 10.1.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296237#M27204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Hello Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Does ArcGIS Server 10.1 supports Order By Fields on layer resource coming from FGDB ? We are working on Arcgis server 10.1 with QIP installed and data source is FGDB. Layer resource Supports Advanced Queries. I am writing ORDER BY clause like [fieldName ASC]. Order by on any field is not working. Any help appreciated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Mudit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 04:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296237#M27204</guid>
      <dc:creator>MuditAgarwal</dc:creator>
      <dc:date>2014-09-23T04:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Order By Fields not working in  ArcGIS Server 10.1.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296238#M27205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mudit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Because you are using ArcGIS Server 10.1 you do have the ability to use the Order by Fields property. Here is an example of how it is used:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14114754860532662 jive_text_macro" jivemacro_uid="_14114754860532662" modifiedtitle="true"&gt;
&lt;P&gt;query.orderByFields = ["STATE_NAME DESC"];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Not sure how you are try to do this without seeing your code, but it sounds like you are trying to add a ORDER BY to your Where clause and this is not supported.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 12:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296238#M27205</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-09-23T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Order By Fields not working in  ArcGIS Server 10.1.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296239#M27206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thanks Robert for quick reply. I am using ORDER BY in REST API interface available when you hit URL (&lt;A href="http://ServerName/arcgis/rest/services/ServiceName/MapServer/layerIndex/query" rel="nofollow" style="text-decoration: underline;" target="_blank" title="http://ServerName/arcgis/rest/services/ServiceName/MapServer/layerIndex/query"&gt;http://ServerName/arcgis/rest/services/ServiceName/MapServer/layerIndex/query&lt;/A&gt;) in browser. &lt;/SPAN&gt;&lt;SPAN&gt;I tried the way you described but no luck so I managed it by sorting the values in java script array after getting the result. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 07:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296239#M27206</guid>
      <dc:creator>MuditAgarwal</dc:creator>
      <dc:date>2014-09-26T07:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Order By Fields not working in  ArcGIS Server 10.1.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296240#M27207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mudit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So you are saying that when you go to the RSET Service Directory page for your service you specify a field for the "Order By Fields:" item on the web form and it does not order the results? If this is truly the case then you should call tech support on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 13:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-by-fields-not-working-in-arcgis-server-10-1/m-p/296240#M27207</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-09-26T13:19:15Z</dc:date>
    </item>
  </channel>
</rss>

