added test for sorting #PH-2