Entries with the same published date are ordered according to their created_at value, not their id.

The database ID is usually a sequentially-increasing number, but it's not guaranteed to always be so. The created_at field automatically added by Rails is more appropiate for this end.