diff -r 6a6ef726a2b3 -r 4fa7701918ed mercurial/commands.py --- a/mercurial/commands.py Mon Jun 16 11:37:26 2008 +0200 +++ b/mercurial/commands.py Mon Jun 16 11:50:33 2008 +0200 @@ -380,7 +380,8 @@ for n in repo.heads()] branches = [(tag in activebranches, repo.changelog.rev(node), tag) for tag, node in repo.branchtags().items()] - branches.sort(reverse=True) + branches.sort() + branches.reverse() for isactive, node, tag in branches: if (not active) or isactive: