https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-06-29T08:57:34ZRedmineRedmine - Patch #1546: Associated revisions are displayed in wrong order for Git, Mercurial (SHA-1 DVCSs)https://www.redmine.org/issues/1546?journal_id=36132008-06-29T08:57:34ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.8</i></li></ul><p>You're right. This sort order wasn't updated when the revision field was changed from numeric to string.<br />Fixed in <a class="changeset" title="Fixed: associated revisions are displayed in wrong order on issue view (#1546)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1596">r1596</a>.</p>
<pre><code>has_and_belongs_to_many :changesets, :order => "#{Changeset.table_name}.committed_on ASC, #{Changeset.table_name}.id ASC"</code></pre> Redmine - Patch #1546: Associated revisions are displayed in wrong order for Git, Mercurial (SHA-1 DVCSs)https://www.redmine.org/issues/1546?journal_id=75562009-02-22T11:57:24ZKen Sands
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><blockquote>
<p>has_and_belongs_to_many :changesets, :order => "#{Changeset.table_name}.committed_on ASC, #{Changeset.table_name}.id ASC"</p>
</blockquote>
<p>can I suggest this would be nicer (or at least optional) to be DESC rather than ASC so the latest revision is the topmost, as per activity and most other lists throughout the interface? that's how I've set it in mine.</p> Redmine - Patch #1546: Associated revisions are displayed in wrong order for Git, Mercurial (SHA-1 DVCSs)https://www.redmine.org/issues/1546?journal_id=75602009-02-22T15:16:05ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Changed in <a class="changeset" title="Sort changesets in the same order as comments on the issue details view (#1546)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2519">r2519</a>. Changsets are now sorted in the same order as the comments (which is based on a user preference).</p>