Release Automation

 View Only
  • 1.  sort a string array

    Posted Dec 03, 2014 04:06 PM

    How can I sort a string array parameter ?

    I get the values from an external request (clearcase cleartool view), but want to list the values by alphabetical order



  • 2.  Re: sort a string array
    Best Answer

    Broadcom Employee
    Posted Dec 03, 2014 04:22 PM

    Easiest thing to do is use the javascript action.  Something like:

     

    arrOutput1 = arrInput1.sort()

     

    with arrInput1 being your input array and arrOutput1 being the sorted output array.

     

    reards