Subject: tag sort order
Following up on previous Tag Sort Order
"Sorting by tag date presents too many issues."
Not really, sorting by date does exactly that. No issue - except for that some people may not prefer it.
"What if the user has a mix of annotated tags and lightweight ones?"
So? The tags are sorted by date, which is exactly the expected result of sorting by date.
"What if the anno tags were added sometime after the fact, or as a big batch? Which time is "correct"?"
Git supports providing a timestamp for a tag when creating the tag. The functionality should be used when a tag is made after the fact. This is a non-issue.
Sorting Tags should be a project and/or user preference at least.
Now, "Sorting by Version" certainly presents a lot more issues. You can't possible take into account all version schemes and correctly sort them in a way that is always useful.
Dates on the other hand are of a known format, and can always be sorted correctly. Git allows for the manipulation of Tag dates, so if someone really wanted their Tags sorted differently on GitHub (if GitHub sorted by dates), they could manipulate the Tag dates. Not that I'm recommending such a thing, but at least there would be that ability...
Comments are currently closed for this discussion. You can start a new one.
2 Posted by chris on 07 Nov, 2009 01:08 AM
To clarify the main point.
You can't incorrectly sort dates. You can incorrectly sort tag names.
Whether sorting by date as a byproduct happens to sort the tag names "correctly" or "incorrectly" is irrelevant. "correct" in this case means that tags are sorted by date. "correct" does not mean that from sorting by date the tag names are sorted in a sensible manner.
I am interested in sorting by date. I'm not interested in using date sorting to produce some desired tag name sorting result (although that would be possible by manipulating the git tag dates).
Support Staff 3 Posted by Tekkub on 07 Nov, 2009 01:10 AM
We're taking it under consideration. However, the tag version sorter was recently overhauled, so we'd like to see how it works out first.