The Layer Sorting Bundle allows you to manage the contents included in multiple domain bundles, creating a focused, app-based subset of contents.
https://demos.conterra.de/mapapps/resources/apps/public_demo_layersorting/index.html
Clone this project and ensure that you have all required dependencies installed correctly (see Documentation).
Then run the following commands from the project root directory to start a local development server:
# install all required node modules
$ mvn initialize
# start dev server
$ mvn compile -Denv=dev -Pinclude-mapapps-deps
# run unit tests
$ mvn test -P run-js-tests,include-mapapps-deps