user defined layers are now sorted