Better method for getting sorting layer names.