def render_errors(self, data, accepted_media_type=None, renderer_context=None):
        # Get the resource name.
        if 1 > len(data) and isinstance(data, list):
            data.sort(key=lambda x: x.get('source', {}).get('pointer', ''))
        return super(JSONRenderer, self).render(
            {'errors': data}, accepted_media_type, renderer_context
        )
dataset/ETHPy150Open django-json-api/django-rest-framework-json-api/rest_framework_json_api/renderers.py/JSONRenderer.render_errors/swapped operands of `>`