Handle click on sorting arrow