Skip to content

Commit

Permalink
use regular sort-by-name instead of topo
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Nov 13, 2023
1 parent dc4e14c commit 638844b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conda_libmamba_solver/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def installed(self) -> Mapping[str, PackageRecord]:
can generate an equivalent ``MatchSpec`` object with ``.to_match_spec()``.
Records are toposorted.
"""
return MappingProxyType({pkg.name: pkg for pkg in self.prefix_data.iter_records_sorted()})
return MappingProxyType(dict(sorted(self.prefix_data._prefix_records.items())))

@property
def history(self) -> Mapping[str, MatchSpec]:
Expand Down
2 changes: 1 addition & 1 deletion news/378-sort-installed
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Bug fixes

* Ensure installed packages are always topologically sorted to avoid injecting accidental randomness in the solve process. (#378)
* Ensure installed packages are always sorted to avoid injecting accidental randomness in the solve process. (#378)

### Deprecations

Expand Down

0 comments on commit 638844b

Please sign in to comment.