Implementation of match-order
All tests including match-order's