Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in the sort routine, mentioned at https://xerte.org.uk/inde…
- Loading branch information
1 parent
2e31bd9
commit 63ab5ae
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63ab5ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change by @JohnSmith-LT has been reversed in @torinfo 's merge (9d3e331#diff-f101196fc8ac91bfd7066e70ad09dbac093c84e3d549b647dafccc31e09833d6) - should it be?
63ab5ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second change definitely needs to go back @torinfo:
Math.round(Math.random())-0.5 always returns 0-0.5 = 0.5 which is why this routine never sorted. The first change was just to standardise this poor man's random sort with the same as the other one but it will still work.
63ab5ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JohnSmith-LT @FayCross No, that was certainly NOT the intention...
63ab5ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put in again in 7ed814f64