Sorta-is used to sort arrays of single-dimensioned variables.
Sorta, sorts the array in ascending order by default, to sort the array in descending we need to use Desc keyword.
Sorta – Number Array List
Number – number is length of an array or up to which number we want to sort
Array List – list of array variable separated by comma
In this example we are having two arrays, sorta command is sorting array NUMBER in ascending order and also STR array
To sort these arrays according to STR array –
Sorta 4 STR NUMBER or
Sorta 4 STR
To sort in descending order –
Sorta 4 STR NUMBER Desc
Hope this helps.
Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product, system integrations, third party add-on development and implementation expertise.
Greytrix have some unique solutions of Sage X3’s integration with Sage CRM, Salesforce.com and Magento eCommerce. It also offers best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.
For more information on Sage X3 Integration and Services, please contact us at firstname.lastname@example.org .We will be glad to assist you.
Other Related Blogs: