moved sorting to original read-in
removed unnecessary output and made tacit version of right_jack