Fix wrong sorting of remotes when using -J

It was sorting by uuid, rather than cost!

Avoid future bugs of this kind by changing the Ord to primarily compare
by cost, with uuid only used when the cost is the same.

This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
Joey Hess 2018-08-03 13:06:06 -04:00
parent 178ab762eb
commit 1a02fc1159
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="joey"
subject="""comment 9"""
date="2018-08-03T16:30:35Z"
content="""
The -J2 web bug was not related to caching remotes at all
but was an accidental sort by remote uuid rather than cost.
I've fixed it.
"""]]