Fixed sorting layers by priority