continue migrate sort table to native JS