Add support for add_sorts in device action