diff options
| author | Greg Roach <fisharebest@gmail.com> | 2014-05-28 06:25:17 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2014-05-28 06:25:17 +0100 |
| commit | bbec63872ba8fccd5301c10640099d90c16e5d58 (patch) | |
| tree | 5df49519a28d96ae7da76fcc5be39f8ae7f57f59 | |
| parent | b9e79fd5e352d0e8b5602b385e9281b05157e622 (diff) | |
| download | webtrees-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.php | 1 |
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. |
