remove logging during sort and make extra sure sort is true