Meta class: indexes vs ordering

I've encountered with below fields in Meta class. According to author the 'indexes' of the 'created' field is for optimazing the query, but isn't 'ordering' for that?

    class Image(models.Model):
        ...
        created = models.DateField(auto_now_add=True)


        class Meta:
            indexes = [
                models.Index(fields=['-created'])
            ]
            ordering = ['-created']
Back to Top