Code Monkey home page Code Monkey logo

Comments (5)

patrickkunka avatar patrickkunka commented on June 14, 2024

Hi there, thanks for your feedback!

I've taken a look at your code and everything looks good to me. Our sandbox demo (with the dogs and cats) on our homepage, uses alphabetic sorting with the same attributes you are using and it's working fine with 1.4. Perhaps you could attach a link to your project so I can take a look? What is the exact behavior you are experiencing?

I did notice one issue with the code you have posted though. The styles "opacity: 0;" and "display: none" should not be added inline to the style attribute - they should be added to your CSS. Otherwise they will be overwritten by MixItUp. I hope this helps.

Best,
Patrick

from mixitup.

sneridagh avatar sneridagh commented on June 14, 2024

Hi!
Thanks for the fast reply! I've been fiddling arround with your sandbox demo and I've realised that you've order it by the name of the cats from the beginning in the DOM (I've checked the site without JS enabled, to be sure of it). My test doesn't have an specific order in the original DOM elements.
Thanks in advance,
Cheers!

from mixitup.

patrickkunka avatar patrickkunka commented on June 14, 2024

Hi there - you are quite right! I've had a look at it again and it appears that sorting alphabetically is sorting by the default order of the DOM rather than by attribute. I will try to get a fix out for this ASAP - thanks for bringing this to my attention.

from mixitup.

sneridagh avatar sneridagh commented on June 14, 2024

Thanks a lot!

from mixitup.

patrickkunka avatar patrickkunka commented on June 14, 2024

I've just pushed v1.4.1 with a fix for this - let me know if it works! I've also edited our SandBox demo so that the DOM loads in a random order.

from mixitup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.