fix bug in sort. add test to check node coverage with assert. realize that we aren't adding enough nodes