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.