AWS Lambda ListVersionsByFunction返回的版本是否已排序?

When submitting a ListVersionsByFunction request to the AWS REST API is there any guarantee that the results will be sorted in any way?

If not, is there any way to get the most recent N versions without retrieving the entire list?

Without knowing this fact, I used to get the latest 1024 version (based on the assumption that it will take a long time for my code to generate that many versions) and sorted them in reverse order by some custom sorting function.

The first index in the resultset will be $LATEST, with subsequent versions in order from oldest to latest (e.g. sorted by Version, ascending).