Improved Sorting

- improved sorting of layers (layers will not be send to back anymore)