aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 20:12:40 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 20:12:40 -0700
commite7788156052bcb3676fe761f89769c2d72dc4bca (patch)
treebc8ea9ddfdf9e9b99a9a04afca69b3f5f64d7e1d /include
parentf2e802229acb871e0b50afb729445cdef8586951 (diff)
downloadvolse-hubzilla-e7788156052bcb3676fe761f89769c2d72dc4bca.tar.gz
volse-hubzilla-e7788156052bcb3676fe761f89769c2d72dc4bca.tar.bz2
volse-hubzilla-e7788156052bcb3676fe761f89769c2d72dc4bca.zip
use two keys for the updated sort
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 2448775af..7e0394058 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1505,7 +1505,9 @@ function sort_thr_commented($a,$b) {
}
function sort_thr_updated($a,$b) {
- return strcmp($b['updated'],$a['updated']);
+ $indexa = (($a['changed'] > $a['edited']) ? $a['changed'] : $a['edited']);
+ $indexb = (($b['changed'] > $b['edited']) ? $b['changed'] : $b['edited']);
+ return strcmp($indexb,$indexa);
}
function find_thread_parent_index($arr,$x) {