or more easy to read and still short like
$PageListSortCmp['shortyear'] = 'ShortYear($x, $y)';
function ShortYear($x, $y) {
$dx = PageVar($x, '$Name');
$dy = PageVar($y, '$Name');
$x = (substr($dx,0,2)>=50 ? '0'.$dx : '1'.$dx);
$y = (substr($dy,0,2)>=50 ? '0'.$dy : '1'.$dy);
return strcmp($x, $y);
}
~Hans