<?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: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/890200#M63262</link>
    <description>&lt;P&gt;Because, Order of Input can be anything, ascending OR descending, the service should provide output whatever input order coming.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 08:41:26 GMT</pubDate>
    <dc:creator>MM_10159448</dc:creator>
    <dc:date>2023-07-28T08:41:26Z</dc:date>
    <item>
      <title>How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884065#M62952</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am facing this issue mentioned below:&lt;/P&gt;&lt;P&gt;I want to prevent sort ascending order .Please help on this and provide solution&lt;/P&gt;&lt;P&gt;Thingworx Version-V8.5.6&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MM_10159448_0-1688038237886.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/84444i520EBBF7849A5913/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MM_10159448_0-1688038237886.png" alt="MM_10159448_0-1688038237886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 11:31:37 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884065#M62952</guid>
      <dc:creator>MM_10159448</dc:creator>
      <dc:date>2023-06-29T11:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884161#M62960</link>
      <description>&lt;P&gt;If you are generating this in a service, then you can apply your desired sort in the service before setting it to result.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 16:54:40 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884161#M62960</guid>
      <dc:creator>PaiChung</dc:creator>
      <dc:date>2023-06-29T16:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884258#M62966</link>
      <description>&lt;P&gt;Hi PaiChung,&lt;/P&gt;&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;Applying desired sort means,not understood clearly, can u please explain or share some code if you have as an examples?&lt;/P&gt;&lt;P&gt;Currently, I am not applying any sort in service, You can see in screenshot, Whatever , I am sending as an input sequence, same I want in infotable service output. without sort ascending order&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:53:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884258#M62966</guid>
      <dc:creator>MM_10159448</dc:creator>
      <dc:date>2023-06-30T06:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884347#M62968</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide some code snippets from your service to help us understand how you are building the infotable.&amp;nbsp; My assumption from your screen shot and using "Dynamic Columns"&amp;nbsp; is that you are creating the data shape for the info table on the fly either entirely or adding columns to an existing data shape using AddField or fieldDefinitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In either case column order is not guaranteed to be in add order by default.&amp;nbsp; If you want to guarantee columns are in a specific order you must specify the ordinal property when adding the column.&amp;nbsp; Please see the following support cases for examples:&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS313173" target="_blank" rel="noopener"&gt;CS313173&lt;/A&gt;&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS388066" target="_blank" rel="noopener"&gt;CS388066&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Travis&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:32:00 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/884347#M62968</guid>
      <dc:creator>TravisPickett</dc:creator>
      <dc:date>2023-06-30T14:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/885715#M63008</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Thank you for providing to set ordinal property information.&lt;/P&gt;&lt;P&gt;Now, Service giving desired output when executing service manually from composer but when checked in runtime 'Developer Tools' not getting desired output&lt;/P&gt;&lt;P&gt;Pls check both screenshot&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know any solution on it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ordinal_Runtime_Developer Tools.PNG" style="width: 548px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/84874i2A345DC885AA1E9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ordinal_Runtime_Developer Tools.PNG" alt="Ordinal_Runtime_Developer Tools.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ordinal_Manual Exec.PNG" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/84875iDC9173AA89C54A46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ordinal_Manual Exec.PNG" alt="Ordinal_Manual Exec.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 15:52:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/885715#M63008</guid>
      <dc:creator>MM_10159448</dc:creator>
      <dc:date>2023-07-06T15:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/885999#M63014</link>
      <description>&lt;P&gt;A json object does not account property order. (&lt;A href="https://stackoverflow.com/a/16870531" target="_blank"&gt;https://stackoverflow.com/a/16870531&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;The "ordinal" property is a twx-specific metadata which twx toolings will consider. The "wanted" order you can see in developer tools response in "datashape" (your screenshot shows the "rows" of the response)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmutter_0-1688767546697.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/84973iFCCEF76838963B51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nmutter_0-1688767546697.png" alt="nmutter_0-1688767546697.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I ask the use case why you rely on the order of the properties?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 22:09:43 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/885999#M63014</guid>
      <dc:creator>nmutter</dc:creator>
      <dc:date>2023-07-07T22:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/890200#M63262</link>
      <description>&lt;P&gt;Because, Order of Input can be anything, ascending OR descending, the service should provide output whatever input order coming.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 08:41:26 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/890200#M63262</guid>
      <dc:creator>MM_10159448</dc:creator>
      <dc:date>2023-07-28T08:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/893431#M63387</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/518344"&gt;@MM_10159448&lt;/a&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are you concerned with the order displayed in Dev Tools if Composer is displaying in the desired order? &amp;nbsp;Dev Tools is strictly the response that is returned. &amp;nbsp;It may not present in the desired order determined by the ordinal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 15:00:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/893431#M63387</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2023-08-11T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Prevent Sort Ascending Order Of Dynamic Column Name in Services Output</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/915181#M64667</link>
      <description>&lt;P&gt;After applying ordinal logic, Service giving desired result based on input any sequence provided but same checked in runtime 'Devtools' preview tab,It is again converting to ascending order&lt;/P&gt;&lt;P&gt;This is the problem&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:43:24 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-To-Prevent-Sort-Ascending-Order-Of-Dynamic-Column-Name-in/m-p/915181#M64667</guid>
      <dc:creator>MM_10159448</dc:creator>
      <dc:date>2023-11-28T15:43:24Z</dc:date>
    </item>
  </channel>
</rss>

