Background layer sorting implemented