From: Anthony Talarico Date: Wed, 5 Jul 2017 16:16:35 +0000 (-0400) Subject: adjusting the member dataCategories sortParentChild function X-Git-Tag: v2.10.0^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fd75f631a3fbeca6daddab6c25555731667010b5;p=WP-Plugins%2Fglm-member-db.git 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. --- 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) {