title: Django rest framework sorting in ascending and descending order
body: <p>This is my view code</p>
  <pre><code>class BlogListSerializerView(generics.ListAPIView):
      model = Blog
      serializer_class = BlogSerializer
      pagination_class = CustomPagination
  </code></pre>
  <p>for sorting the client side request comes with two parameters, <code>'sorters[0][field]'</code> and <code>'sorters[0][dir]'</code>. Query param look like this <code>?page=1&amp;size=15&amp;sorters[0][field]=is_approved&amp;sorters[0][dir]=asc</code>
  I could add the first parameter in settings as follows</p>
  <pre><code>REST_FRAMEWORK = {
      'ORDERING_PARAM': 'sorters[0][field]'
  }
  </code></pre>
  <p>and I have added ordering filter and ordering filter as follows to the view</p>
  <pre><code>    filter_backends = [filters.OrderingFilter]
      ordering_fields = ['category']
      ordering = ['-id']
  </code></pre>
  <p>Now it sorts the table but only in one direction, how can I sort it in ascending and descending order, any help will be appreciated.</p>