protected function sort_tags( $parsed_tags ) {
		if ( empty( $parsed_tags ) ) {
			return false;
		}

		list($tags, $rollback) = $parsed_tags;
		usort( $tags, 'version_compare' );
		krsort( $rollback );

		$newest_tag     = array_slice( $tags, -1, 1, true );
		$newest_tag_key = key( $newest_tag );
		$newest_tag     = $tags[ $newest_tag_key ];

		$this->type->newest_tag = $newest_tag;
		$this->type->tags       = $tags;
		$this->type->rollback   = $rollback;

		return true;
	}
protected function sort_tags( $parsed_tags ) {
		if ( empty( $parsed_tags ) ) {
			return false;
		}

		list($tags, $rollback) = $parsed_tags;
		usort( $tags, 'version_compare' );
		krsort( $rollback );

		$newest_tag     = array_slice( $tags, -1, 1, true );
		$newest_tag_key = key( $newest_tag );
		$newest_tag     = $tags[ $newest_tag_key ];

		$this->type->newest_tag = $newest_tag;
		$this->type->tags       = $tags;
		$this->type->rollback   = $rollback;

		return true;
	}
protected function sort_tags ( $ parsed_tags ) { if ( empty ( $ parsed_tags ) ) { return false ; } list ( $ tags , $ rollback ) = $ parsed_tags ; usort ( $ tags , 'version_compare' ) ; krsort ( $ rollback ) ; $ newest_tag = array_slice ( $ tags , - 1 , 1 , true ) ; $ newest_tag_key = key ( $ newest_tag ) ; $ newest_tag = $ tags [ $ newest_tag_key ] ; $ this -> type -> newest_tag = $ newest_tag ; $ this -> type -> tags = $ tags ; $ this -> type -> rollback = $ rollback ; return true ; }
Sort tags and set object data.

@param array $parsed_tags

@return bool
Sort tags and set object data .