add/changed regression test for sort and range type difference