*/
function sort_thr_received(array $a, array $b)
{
+ if ($b['pinned'] && !$a['pinned']) {
+ return 1;
+ } elseif (!$b['pinned'] && $a['pinned']) {
+ return -1;
+ }
+
return strcmp($b['received'], $a['received']);
}
*/
function sort_thr_received_rev(array $a, array $b)
{
+ if ($b['pinned'] && !$a['pinned']) {
+ return -1;
+ } elseif (!$b['pinned'] && $a['pinned']) {
+ return 1;
+ }
+
return strcmp($a['received'], $b['received']);
}
*/
function sort_thr_commented(array $a, array $b)
{
+ if ($b['pinned'] && !$a['pinned']) {
+ return 1;
+ } elseif (!$b['pinned'] && $a['pinned']) {
+ return -1;
+ }
+
return strcmp($b['commented'], $a['commented']);
}