add sorting buttons

going to delete leftover code now