<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>how to implement the functionality that is on all the sites? up and down arrows</title><link>https://community.appian.com/discussions/f/data/19243/how-to-implement-the-functionality-that-is-on-all-the-sites-up-and-down-arrows</link><description>Hi community @Appian, 
 
 I simply want to be able to implement this : 
 
 ), a!richTextIcon( icon: &amp;quot;sort-up&amp;quot;, size: &amp;quot;MEDIUM&amp;quot;, link: a!dynamicLink(saveInto: a!save(index:fv!index-1)), linkStyle :&amp;quot;STANDALONE&amp;quot; 
 ) 
 
 this is what I have currently, 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to implement the functionality that is on all the sites? up and down arrows</title><link>https://community.appian.com/thread/75328?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 17:07:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:150b5c8f-0848-45af-b2ab-8596d1a87246</guid><dc:creator>kevinr0001</dc:creator><description>&lt;p&gt;thank you&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f600.svg" title="Grinning"&gt;&amp;#x1f600;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to implement the functionality that is on all the sites? up and down arrows</title><link>https://community.appian.com/thread/75327?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 16:59:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1339532-d1ec-4e86-89d5-2405d721ed07</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi there,&lt;br /&gt;You can achieve this using this simple trick.&lt;br /&gt;Let&amp;#39;s assume that the variable holding data is local!data. Also this is the variable on which you are iterating the forEach loop.&lt;br /&gt;Now you can use this in you save into&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!save(
   local!data,
   updatearray(
     local!data,
     {
       fv!index,
       fv!index-1
     },
     {
       local!data[fv!index-1],
       fv!item
     }
   )
 )&lt;/pre&gt;&lt;br /&gt;This code will work for shifting a row up. Therefore use this on up arrow.&lt;br /&gt;Similarly for shifting down (Down arrow), replace the minus(-) operator with plus(+) operator and that would work.&lt;br /&gt;&lt;br /&gt;Extra : The icons shown in the picture are not rich text icons but &lt;a href="https://docs.appian.com/suite/help/20.2/fnc_system_a_iconindicator.html"&gt;iconIndicator&lt;/a&gt; used inside ImageField (DocumentImage)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>