action listeners to buttons

(the sorting buttons)