Parsing error in Eleventy/Glitch

So, I’m making in eleventy and I was follow the tutorial ana it says it add this command:
.sort((a, b) => -;
And I get this error: Parsing error: Unexpected token .

Hi and welcome to the community.! Can you share your project name and file with us? Thanks

1 Like

you need something left of that dot at the beginning before .sort

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.