Do Generic Package Repository downloads always fetch the latest version of a file

I have noticed that when using the GitLab Generic Package Registry, uploading multiple copies of the same file (package_name, package_version, file_name tuple) will not overwrite the file in the UI - instead, multiple copies are listed (see screenshot).

I can’t find the details of the behavior documented anywhere. Are download requests via the V4 api (as documented here) always guaranteed to download the latest upload?

Looking at the implementation as of this post, it will return the most recent one (utilizing its table’s primary key of id, an incrementing integer).

I’ve raised a change to clarify this in the documentation.