fix sortingOrder/ID in layer