[Git][pacman/pacman][release/7.1.x] Prevent overflow when sorting package download order