[vcs-log] use correct comparator to sort branches in details IDEA-133968