hacked sort working