add save of sorting when draging sensor previews

currently only supports mysql and sqlite