Added phpSort method.