# git log --author-date-order not always working

1 messages from 2018-09-03 to 2018-09-03. Participants: thomas menzel.
Thread: https://gitlist.dev/t/49268

## thomas menzel, 2018-09-03 12:54

Subject: git log --author-date-order not always working
Message-ID: <2056463102.521974.1535979253941@email.1und1.de>
URL: https://gitlist.dev/e/2056463102.521974.1535979253941%40email.1und1.de

```
hi,

i just ran into this little possible bug but cant pin it down any further as it happens against a git repo for work project that i cant share.

when i run this git log against my repo i get this wrong sort order (1st col is authored date and 2nd is commit date):

$ git log --author=menzel --since=2018-08-10 --pretty=format:"%ad %cd %h" --date=short --author-date-order --until=2018-08-20
2018-08-20 2018-08-20 f2ff8245
2018-08-17 2018-08-17 d8afbdb7
2018-08-17 2018-08-17 853fdeca
2018-08-16 2018-08-20 7dd7b234
2018-08-16 2018-08-16 41fcb077
2018-08-16 2018-08-16 f081f38c
2018-08-15 2018-08-15 95466702
2018-08-15 2018-08-15 d8e6f91d
2018-08-15 2018-08-15 c1cd6e14
2018-08-15 2018-08-15 4bd06ba3
2018-08-14 2018-08-14 6876182b
2018-08-14 2018-08-17 6fb982ee
2018-08-17 2018-08-17 d2323219
2018-08-17 2018-08-17 b35793b4
2018-08-17 2018-08-17 ab784faf
2018-08-10 2018-08-10 9ede6a8d
2018-08-10 2018-08-10 e4959669
2018-08-16 2018-08-16 d146a71b
2018-08-15 2018-08-15 37396218
2018-08-15 2018-08-15 554042c5
2018-08-13 2018-08-13 39c80c8f

whereas this works:

$ git log --author=menzel --since=2018-08-10 --pretty=format:"%ad %cd %h" --date=short --author-date-order --until=2018-08-17
2018-08-17 2018-08-17 b35793b4
2018-08-17 2018-08-17 ab784faf
2018-08-16 2018-08-16 d146a71b
2018-08-16 2018-08-16 41fcb077
2018-08-16 2018-08-16 f081f38c
2018-08-15 2018-08-15 37396218
2018-08-15 2018-08-15 554042c5
2018-08-15 2018-08-15 95466702
2018-08-15 2018-08-15 d8e6f91d
2018-08-15 2018-08-15 c1cd6e14
2018-08-15 2018-08-15 4bd06ba3
2018-08-14 2018-08-14 6876182b
2018-08-13 2018-08-13 39c80c8f
2018-08-10 2018-08-10 9ede6a8d
2018-08-10 2018-08-10 e4959669

Note that the different location for the 2018-08-10 entries!
The only difference is in the --until parameter. 

It appears that after a certain commit date the ordering after the authored date gets broken. 
Any1 with a clue on what could be the cause?

Context
- same behavior for a colleague of mine
- we run on git version 2.16.2.windows.1 in git bash

cheers

tom

PS: i will try sometime later to check this repo with the latest linux version

```
