We need to be able to change the order of comments depending on the filter specified. Users should be able to specify if they want the list of comments to be ordered by id (which is basically creation date) descending (which it already does), or by most likes descending. Check out https://www.django-rest-framework.org/api-guide/filtering/ and see if it's helpful.
We need to be able to change the order of comments depending on the filter specified. Users should be able to specify if they want the list of comments to be ordered by id (which is basically creation date) descending (which it already does), or by most likes descending. Check out https://www.django-rest-framework.org/api-guide/filtering/ and see if it's helpful.