Datasheet - Sort

Yes, you can create buttons for each type of sort you want. Each button will have a click event that will execute the setSort code I linked.