Issue Saving Site when trying to Save a Dataset Sort

I am having issues saving my site (the Save progress bar keeps going indefinitely) when I try to save a dataset sort.

Anyone experiencing this issue or know what is going on?

When I try it through code I get this error.

$w ( “#countrydataset” ). setFilter ( wixData . filter (). eq ( ‘region’ , region ). ascending ( ‘country’ ))

Uncaught (in promise) TypeError: e(…).filter(…).eq(…).ascending is not a function
at oe9rs.js:39
at c (runtime.js:45)
at Generator._invoke (runtime.js:274)
at Generator.forEach.e. [as next] (runtime.js:97)
at g (oe9rs.js:1)
at a (oe9rs.js:1)

It seems you and many of us are having issues with datasets and filtering right now, I believe there was some update. Consider tagging a staff member to bring attention to this.

We are tracking the issues, but please also report them to Wix Customer Care .

Can you please provide the page URL?

Hey Alexandre,

Seems that you are trying to call ascending() method on wixDataFilter API, but there is no such a method - https://www.wix.com/velo/reference/wix-data/filter

I think you need use dataset’s sort API - https://www.wix.com/velo/reference/wix-dataset/dataset/setsort

Like so (haven’t checked):

$w("#countrydataset").setFilter(wixData.filter().eq('region',region));
$w("#countrydataset").setSort(wixData.sort().ascending("country"));