add some exception handling for Number format when entering the amount of bars to sort