diff --git a/apiserver/apiserver/api/serializers.py b/apiserver/apiserver/api/serializers.py index 8facdaa..0ab990a 100644 --- a/apiserver/apiserver/api/serializers.py +++ b/apiserver/apiserver/api/serializers.py @@ -426,7 +426,7 @@ class AdminSearchSerializer(serializers.Serializer): def get_transactions(self, obj): queryset = obj.user.transactions - queryset = queryset.order_by('-id', '-date') + queryset = queryset.order_by('-date', '-id') serializer = TransactionSerializer(data=queryset, many=True) serializer.is_valid() return serializer.data