bin/lcreplicate.rb: Fix bug in sorting items by time.