Sorting problem

Hi Everybody,

I have a field checkbox field consists of multiple values.

Ex: H32456-synergy, H32456-socket, H32456-aquity

Here i want to sort the values.

I have used this code

@word(choice;“-”;2)

when i use this code its working but the values after the separator are displaying, here i want to sort the value after separator and to display total string.

output should be in this type.

ex:H32456-aquity, H32456-socket, H32456-synergy

Subject: Sorting problem

x := “H32456-synergy”:“H32456-socket”:“H32456-aquity”;

@Prompt([OkCancelList]:[NoSort]; “Unsorted elements”; “The following are the elements before sorting”; “”; x);

y := @Sort(x; [CustomSort]; @Right($A; “-”) > @Right($B; “-”));

@Prompt([OkCancelList]:[NoSort]; “Sorted elements”; “The following are the elements after sorting”; “”; y)