add and debug layer sorting feature