human
Django order by highest number of likes
assistant
Here is some code to sort objects in `Articles` in descending order of counts of `likes`

Article.objects.annotate(like_count=Count('likes')).order_by('-like_count')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.