Skip to content

Commit

Permalink
Merge pull request #32 from symbiote/fix-sorting
Browse files Browse the repository at this point in the history
FIX: adding credit and resolving an issue with menu_groups_alphabetical_sorting
  • Loading branch information
stephenmcm committed Jun 19, 2019
2 parents 4a7ee3d + 7a921e3 commit 7503bde
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -102,10 +102,6 @@ langcode:
Other_Label: 'translated text'
```

## Maintainer

* Marcus Nyeholt (<marcus@symbiote.com.au>)

## Requirements

* SilverStripe 4.0+ (See other branches for compatibility with older versions)
Expand All @@ -114,3 +110,7 @@ langcode:

* [GitHub Project Page](https://github.com/symbiote/silverstripe-grouped-cms-menu)
* [Issue Tracker](https://github.com/symbiote/silverstripe-grouped-cms-menu/issues)

## Credits

* A massive thanks to Russ Michell ([phptek](https://github.com/phptek)) for upgrading this module to be SS4 compatible!
14 changes: 10 additions & 4 deletions composer.json
Expand Up @@ -5,10 +5,16 @@
"homepage": "https://github.com/symbiote/silverstripe-grouped-cms-menu",
"keywords": ["silverstripe", "menu", "module", "cms", "group", "grouped", "grouping"],
"license": "BSD-3-Clause",
"authors": [{
"name": "Marcus Nyeholt",
"email": "marcus@symbiote.com.au"
}],
"authors": [
{
"name": "Marcus Nyeholt",
"homepage": "https://github.com/nyeholt"
},
{
"name": "Russ Michell",
"homepage": "https://github.com/phptek"
}
],
"require": {
"silverstripe/admin": "~1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/GroupedCmsMenu.php
Expand Up @@ -188,7 +188,7 @@ public function filterChildren(SS_List $children)
}

return $config->get('menu_groups_alphabetical_sorting') ?
$filtered->sort('Title') :
$filtered->sort('ChildTitle') :
$filtered->sort('SortOrder');
}

Expand Down

0 comments on commit 7503bde

Please sign in to comment.