Got sorting working with tick boxes