// SortedReleaseTags returns the tags for a given release in the most appropriate order -
// by creation date for iterative streams, by semantic version for stable streams. If
// phase is specified the list will be filtered.
SortedReleaseTags returns the tags for a given release in the most appropriate order
by creation date for iterative streams, by semantic version for stable streams. If
phase is specified the list will be filtered.
// SortedReleaseTags returns the tags for a given release in the most appropriate order - // by creation date for iterative streams by semantic version for stable streams . If // phase is specified the list will be filtered .
func SortedReleaseTags(release *Release, phases ...string) []*imagev1.TagReference {
	versions := UnsortedSemanticReleaseTags(release, phases...)
	switch release.Config.As {
	case ReleaseConfigModeStable:
		sort.Sort(versions)
		return versions.Tags()
	default:
		tags := versions.Tags()
		sort.Sort(TagReferencesByAge(tags))
		return tags
	}
}
func SortedReleaseTags ( release * Release , phases ... string ) [ ] * imagev1 . TagReference { versions := UnsortedSemanticReleaseTags ( release , phases ... ) switch release . Config . As { case ReleaseConfigModeStable : sort . Sort ( versions ) return versions . Tags ( ) default : tags := versions . Tags ( ) sort . Sort ( TagReferencesByAge ( tags ) ) return tags } }
SortedReleaseTags returns the tags for a given release in the most appropriate order
by creation date for iterative streams, by semantic version for stable streams.
SortedReleaseTags returns the tags for a given release in the most appropriate order by creation date for iterative streams by semantic version for stable streams .