Macaulay2 / Macaulay2/M2

Sets don't sort consistently

Open
#650 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Core
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

```
i1 : L = {set{1,3},set{0},set{2}}
o1 = {set {1, 3}, set {0}, set {2}}
o1 : List
i2 : L = sort L
o2 = {set {2}, set {0}, set {1, 3}}
o2 : List
i3 : L = sort L
o3 = {set {1, 3}, set {0}, set {2}}
o3 : List
i4 : L = sort L
o4 = {set {2}, set {0}, set {1, 3}}
o4 : List
```
Not really sure what causes this, but repeatedly sorting a list of Sets appears to alternate between two orders.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the alternating order with the interactive examples in the issue, especially the repeated `sort L` commands on a list of Sets. Trace the sorting behavior for Sets and verify that sorting the same list repeatedly produces one stable order rather than alternating between the two shown orders.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.