Reverse layer order in layer manager

As discussed in #389.