I have never used cubecart, so I know absolutely nothing about it. However, here's one general suggestion which
may help you. Use it with care and, of course, at your own risk.
The values are probably sent to the drop-down list generator function as an array. You should locate this function in the code and apply the sort() or arsort() function on the array before the drop-down list is generated. Which function? It depends on the array type but I guess it won't hurt to try them both.
Quote:
bool sort ( array array [, int sort_flags])
This function sorts an array. Elements will be arranged from lowest to highest when this function has completed.
Note: This function assigns new keys for the elements in array. It will remove any existing keys you may have assigned, rather than just reordering the keys.
Returns TRUE on success or FALSE on failure.
arsort
(PHP 3, PHP 4 )
arsort -- Sort an array in reverse order and maintain index association
Description
bool arsort ( array array [, int sort_flags])
This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant.
Returns TRUE on success or FALSE on failure.
Sorting type flags:
SORT_REGULAR - compare items normally
SORT_NUMERIC - compare items numerically
SORT_STRING - compare items as strings
|