A sorting tool