Sorting visualization on button click.