WIP sorting and printing working