summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-05-28 06:25:17 +0100
committerGreg Roach <fisharebest@gmail.com>2014-05-28 06:25:17 +0100
commitbbec63872ba8fccd5301c10640099d90c16e5d58 (patch)
tree5df49519a28d96ae7da76fcc5be39f8ae7f57f59
parentb9e79fd5e352d0e8b5602b385e9281b05157e622 (diff)
downloadwebtrees-bbec63872ba8fccd5301c10640099d90c16e5d58.tar.gz
webtrees-bbec63872ba8fccd5301c10640099d90c16e5d58.tar.bz2
webtrees-bbec63872ba8fccd5301c10640099d90c16e5d58.zip
#150 - sort families by marriage date on branches list
-rw-r--r--library/WT/Controller/Branches.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/WT/Controller/Branches.php b/library/WT/Controller/Branches.php
index 1a44ed115e..636a26d2d8 100644
--- a/library/WT/Controller/Branches.php
+++ b/library/WT/Controller/Branches.php
@@ -177,6 +177,7 @@ class WT_Controller_Branches extends WT_Controller_Page {
// spouses and children
$spouse_families = $individual->getSpouseFamilies();
if ($spouse_families) {
+ usort($spouse_families, array('WT_Family', 'CompareMarrDate'));
$fam_html = '';
foreach ($spouse_families as $family) {
$fam_html .= $indi_html; // Repeat the individual details for each spouse.