I get data from useQuery.
And I want to sort them by data field directFeedNumber.
const { data: allFeedData, loading: allFeedLoading } =
useQuery(SEE_ALL_FEED_ORDER);
const FeedSort = allFeedData.seeAllFeedOrder.sort(function (a, b) {
return a - b;
});
So I use sort function to do this, but when I console.log FeedSort, it says Attempted to assign to readonly property.
So can't I use sort function with data got from useQuery?
Then how can I sort them? Please help me!!