Description
The previous implementation sorted the results by "created" (descending order);
|
sort.Sort(sort.Reverse(byCreated(summaries))) |
We can either sort locally, or possibly optimize and have containerd return the result in sorted order.
When sorting the results, we can also optimize the before and since filters to break the loop if we're reaching a certain "created" date.
Description
The previous implementation sorted the results by "created" (descending order);
moby/daemon/images/image_list.go
Line 241 in 7624f8a
We can either sort locally, or possibly optimize and have containerd return the result in sorted order.
When sorting the results, we can also optimize the
beforeandsincefilters to break the loop if we're reaching a certain "created" date.