add character sorting layer