Hi for everybody, sorry if i write with wrongs because i dont now write in english perfectly.
Well, what i like to do is sort a repeater using (setSort) and (ascending)
and i did this:
export function preciomenoramayor(event) {
$w(“#dataset1”).setSort( wixData.sort()
.ascending(“precio”)
);
}
export function preciomayoramenor(event) {
$w(“#dataset1”).setSort( wixData.sort()
.descending(“precio”)
);
it is working, but the problem is: no recongice correct the order because take count the first number and not all the number;
for example it sort of this way:
1200
1300
1400
800
put 800 after 1400 because start with “8”.
If somebody knows how can i solve the problem,
please help me
Att Guillermo