fixed bug while sorting the pairs causing the highest pair not to show in tablecell