add sorting layers