Online Portfolio on Hubspot COS


I followed an article on the Designers Blog and recently implemented a sorting function to a portfolio page and it doesn’t seem to be filtering. I went through everything multiple times and get figure out what went wrong. I’ve read the comments on the article and tweaked things, but still can’t get the filtering to work. Anyone have any ideas or tips on how to get it working? Thank you!

Here is a preview link of my page:

Thank you for your time!