new method test for sortstringbystring