Hi,
Not sure if you are still looking for an answer to this, but just in case, this is how I got this working:
You need to create a second array for the items you want to appear in the dropdown, then assign that array to the value of the sortoptions.