Hi Al, I tried the suggested change you posted and it worked but I was getting the array index values in my dropdown list box (e.g. 0, 1, 2…) instead of the values. So I did a little research on the php function array_reverse and, in one of the forums I found, it was suggested that you add the following parameter to the function “preserve_keys”.
So I made one slight modification to your code line as follows:
$options = array_reverse($options, TRUE);
Adding the parameter with the value of TRUE explicitly fixed the above mentioned problem. Now it works perfectly with my list values showing the actual values in reverse order.
Thank you for your help
-
This reply was modified 8 years, 2 months ago by sasqwatch.