created ordering method, refactored Clique a lil, created test_ordering