Subject: tag sort order

Original Post chris's Avatar

chris

29 Oct, 2009 10:52 AM

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...

  1. 2 Posted by chris on 07 Nov, 2009 01:08 AM

    chris's Avatar

    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).

  2. Support Staff 3 Posted by Tekkub on 07 Nov, 2009 01:10 AM

    Tekkub's Avatar

    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.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

22 Nov, 2009 01:58 PM
22 Nov, 2009 06:55 AM
22 Nov, 2009 05:01 AM
22 Nov, 2009 03:33 AM
22 Nov, 2009 03:24 AM

 

22 Nov, 2009 03:20 AM
22 Nov, 2009 03:13 AM
22 Nov, 2009 01:01 AM
22 Nov, 2009 12:24 AM
21 Nov, 2009 11:10 PM