Co-authored-by: Porter Support <support@porter.run>
@@ -7,6 +7,7 @@ import (
"fmt"
"net/http"
"net/url"
+ "sort"
"strings"
"sync"
"time"
@@ -1057,6 +1058,14 @@ func (r *Registry) GetECRPaginatedImages(
res = append(res, v)
}
+ sort.Slice(res, func(i, j int) bool {
+ if res[i].PushedAt == nil || res[j].PushedAt == nil {
+ return false
+ }
+
+ return res[i].PushedAt.After(*res[j].PushedAt)
+ })
return res, resp.NextToken, nil