This problem has nothing to do with the parameters. The Data is coming fine in Network Tab in chrome dev tools,
But the Console Logging of Raw API Response shows array in reverse.
The Below Image is of Network Tab,Clearly Shows a descending order.
` getCompanies: async (queryParams: IQueryParams) => {
const { sort, page, size, nameFilter } = queryParams;
const requestUrl = `${pathExtended}/sort-by-params${
size
? `?page=${page}&size=${size}&sort=${sort}&name.contains=${nameFilter}&city.contains=${nameFilter}&stateProvince.contains=${nameFilter}&`
: '?'
}cacheBuster=${new Date().getTime()}`;
const promiseGetAll = await http.get<CompanyExtended[]>(requestUrl);
console.log(promiseGetAll);
return promiseGetAll;
},`
I tried Console Logging, But this is something related to Axios, Tried to find on Stack overflow. No workaround even to tryout.