1👍
✅
Clear any ordering in the query explicitly:
Resource.objects.values('start_date').annotate(total=Sum('percentage')).order_by()
Please see here for more info on the interference of the default ordering (as mentioned in the comment you got above from @Anentropic)
Source:stackexchange.com