proper sorting layers order