The order that they are displayed isn't random, it's the order in which they appear in the database.
Ideally you would change this at the point at which they are pulled out of the database, but I wouldn't recommend hacking away at the core code that does this, and so I suggest the following change instead.
Create an over-ride file for your includes/modules/sideboxes/currencies.php file and then insert the two lines that I have added in the middle of this code sample.
PHP Code:
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
function text_cmp($a, $b) {return strcmp($a["text"], $b["text"]);}
usort($currencies_array, 'text_cmp');
$hidden_get_variables = '';
reset($_GET);
while (list($key, $value) = each($_GET)) {
if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= zen_draw_hidden_field($key, $value);
}
}
Bookmarks