insert visible layers at wms_sort position unless layer order has been changed manually