added possiblity for sprite sorting