Add sortBars call back function for the on click listener + failed to sort labels