From fd75f631a3fbeca6daddab6c25555731667010b5 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 5 Jul 2017 12:16:35 -0400 Subject: [PATCH] adjusting the member dataCategories sortParentChild function the sortparentchild function needed to add the tilde to the category name, children and parent in order to sort categories that are similar in name that end with different numbers. --- classes/data/dataCategories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/data/dataCategories.php b/classes/data/dataCategories.php index 2e8ed104..6c73aadb 100644 --- a/classes/data/dataCategories.php +++ b/classes/data/dataCategories.php @@ -429,14 +429,14 @@ class GlmDataCategories extends GlmDataAbstract $aVal = $a[$parent]['name'].'~~~'.$a['name']; } else { // Otheriwse just use the name. - $aVal = $a['name']; + $aVal = $a['name'].'~~~'; } // Same for b value if ($b[$parent]['value']) { $bVal = $b[$parent]['name'].'~~~'.$b['name']; } else { - $bVal = $b['name']; + $bVal = $b['name'].'~~~'; } if ($aVal > $bVal) { -- 2.17.1