diff --git a/dvc/command/diff.py b/dvc/command/diff.py index 36e9e51980..2b1de552c9 100644 --- a/dvc/command/diff.py +++ b/dvc/command/diff.py @@ -55,7 +55,7 @@ def _digest(checksum): if not entries: continue - entries = sorted(tuple(entry.values()) for entry in entries) + entries = [tuple(entry.values()) for entry in entries] entries = [ "{space}{checksum}{separator}{filename}".format( space=" ", diff --git a/tests/func/test_diff.py b/tests/func/test_diff.py index 04719fd4e4..39014540c9 100644 --- a/tests/func/test_diff.py +++ b/tests/func/test_diff.py @@ -248,8 +248,8 @@ def test_cli(tmp_dir, scm, dvc, mocker, capsys): diff = { "added": [], "deleted": [ - {"filename": "foo", "checksum": digest("foo")}, {"filename": "bar", "checksum": digest("bar")}, + {"filename": "foo", "checksum": digest("foo")}, ], "modified": [ {