add encode sorted table for mongdb driver : runcommand