The current version of libgit2 available (0.26.3) has different behavior with SortMode.TIME. It works correctly when left at the default (which is also how the rawhide version works).