sorting by the other two columns as well