add a button to sort by declaring type