This patch doesn't work for me. My new incoming mail generally ends up somewhere in the middle of the list, rather than at the top. Double-clicking on each message works, but then the next and previous message buttons, don't go in order, but jump around.
Undoing this patch makes everything work fine.
while (list($key, $val)=each($a)){
$data=$a[$key]->$field;
if (is_string($data)) $data=strtoupper(str_replace($stripArr, "", $data));
if ($field=="timestamp"){
$data = @strtotime($value->date);
if ($data != false)
$data = $timestamp;
}
else {
$data=$a[$key]->$field;
if (is_string($data))
$data=strtoupper(str_replace($stripArr, "", $data));
}
$index[$key]=$data;
}