Better sorting of the layer list.