You are here

function comment_delete_threading_sort in Comment Delete 7

Sorts associative array of comments by creation time.

1 string reference to 'comment_delete_threading_sort'
comment_delete_threading_values in ./comment_delete.module
Converts threaded comments into associative array of thread strings.

File

./comment_delete.module, line 407
comment_delete.module

Code

function comment_delete_threading_sort($a, $b) {
  if ($a['created'] == $b['created']) {
    return 0;
  }
  return $a['created'] < $b['created'] ? -1 : 1;
}