layer sorting fix
Merge branch 'master' of https://github.com/tsojcanth/pillages