Is krsort() function suitable for sorting (by reverse order) an array where keys are timestamps? Is there (maybe) another “standard” function for doing this?
$arr = array();
$arr[1327305600] = '87718';
$arr[1327132800] = '87798';
// Dunno if SORT_NUMERIC is really necessary?
krsort($arr, SORT_NUMERIC);
Yes it is perfectly suitable, you should use the
SORT_NUMERICflag. It isn’t required as regular sorting will take integers first – but it could prevent future problems.