function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KrisGopiKrisGopi 

How To Swap Bottom element to a Top Element in a single List in Apex

I have a list see below in this on click on the Top button the selected field is on Top  in the same List .

Same as all like selct the one or multi selections then all the fields with the selcting priority they changed

 

name

city-----select on this field and click on the bottom button it will swap and go to bottom of the list

street     top---button

phone     bottom--button

email

country------select on this field and click on the top button it will swap and go to top of the list     

Fname

LastNAme