change pnsortObjectsByKey to pnsort