Change gadgets so sorting of table matches selector.