Hi there,
I assume you want to reorder the list just because you don't know of a better method of pre-selecting an option, right? If that's so I suggest using "selected" instead:
$pageTitle = 'Day You Were Married';
// this is for testing, I expect this variable to be filled somewhere else in your code
$preSelect[$pageTitle] = ' selected';
// $preSelect was an empty array, now it has just one item. I use this trick for pre-selecting options
... while ...
printf('<option label="%s" value="%s"%s>%s</option>',
$nt['product_name'], $nt['url'], $preSelect[ $nt['product_name'] ], $nt['product_name']);
Does this solve your problem?