[PATCH 0 of 3 hg-website] move website toward sources.js

David Champion dgc at uchicago.edu
Sun Nov 21 21:35:27 CST 2010


* On 21 Nov 2010, David Champion wrote: 
> > > http://home.uchicago.edu/dgc/hg/downloads.jpg
> > 
> > I believe the download URLs are sorted in the wrong order.  We want
> > lower priority numbered links first.
> 
> I sorted alphabetically because the previous code did.  We can simply
> not sort (priority is implied, not explicit, in sources.js, so this
> equals sort by priority) but I'm not sure that makes a lot of sense to
> an end-user looking at a list of all downloads for all platforms.  It

I'll add that I think sorting by priority,name would make sense if it
were possible, but Matt would need to update the sources.js spec to
allow that.

If the spec were updated, it might be useful to have the platform
included as an explicit field instead of being (presumably)
somewhere in the package description.  It would allow sorting by
priority,platform,name or platform,priority,name.

With multiple sort keys we also could allow the user to choose the
primary sort key. http://macmercurial.bitbucket.org does this reasonably
nicely.

-- 
David Champion  *  dgc at uchicago.edu  *  IT Services  *  University of Chicago


More information about the Mercurial-devel mailing list