Giter Site home page Giter Site logo

Option to sort folders first about ifm HOT 4 OPEN

mgc8 avatar mgc8 commented on May 27, 2024
Option to sort folders first

from ifm.

Comments (4)

mgc8 avatar mgc8 commented on May 27, 2024 1

Well, that might be possible. I use an external library for sorting and stuff (DataTables), but didn't find a viable solution yet. Unfortunately, at the moment, my time for this project is quite limited, so I'm not sure when I can get back to that.

That is understandable, of course. I will have a look as well, if I find a solution would you accept a patch/pull-request?

Later edit: I was able to implement this with a custom sort function and a couple small changes to the template (in order to include the "data-type" in other relevant columns as well). It works nicely for all relevant columns -- filename, last-modified, size, owner, group, etc. Let me know if you'd like me to submit that, and what your preferred format would be in that case!

from ifm.

misterunknown avatar misterunknown commented on May 27, 2024

Well, that might be possible. I use an external library for sorting and stuff (DataTables), but didn't find a viable solution yet. Unfortunately, at the moment, my time for this project is quite limited, so I'm not sure when I can get back to that.

from ifm.

misterunknown avatar misterunknown commented on May 27, 2024

Great to hear you could implement that. You can file a pull request and I look into it. Unfortunately I don't have reliable frontend tests yet, but if your changes aren't too big, I merge it. Keeping the directories always on top should be optional though, configurable either via the config array or in the frontend or both.

from ifm.

mgc8 avatar mgc8 commented on May 27, 2024

Great to hear you could implement that. You can file a pull request and I look into it. Unfortunately I don't have reliable frontend tests yet, but if your changes aren't too big, I merge it. Keeping the directories always on top should be optional though, configurable either via the config array or in the frontend or both.

Sure, I can definitely do that. It'll take me a bit longer to get it ready with the options code/etc., but it should be within the coming week or so -- I'll send a pull request then.

from ifm.

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.