d-dot-git: Use SwapStrategy.stable when sorting

This should fix the periodic history rewrites.