fixing a bug with the far right sort