Giter Site home page Giter Site logo

Comments (9)

robert7 avatar robert7 commented on August 21, 2024

OK, I think its a good idea. I will look at it later.

Currently the sort is done at db level (which was kind of first "hacky" solution, when I wanted to add 2 column sorting). The original sort was done on "model level" - this is still present in the source code, but deactivated. So I think it would be necessary to partially revert the mine solution, then extend the previous "sort provider" with 2 column logic.

from nixnote2.

MRC01 avatar MRC01 commented on August 21, 2024

from nixnote2.

robert7 avatar robert7 commented on August 21, 2024

ok. thanks. In the future if there is new topic, pls just open new issue - so we don't mix sorting with email :)
I moved the issue and also writen my comments for further plans.

from nixnote2.

SethPoulsen avatar SethPoulsen commented on August 21, 2024

Is anyone working on this at the moment? I really miss being able to click on a column heading to sort. Is there any easy way to re-enable that in the codebase?

p.s. thanks a ton @robert7 for taking over taking care of this project, I really appreciate it and I'm sure I'm not the only one.

from nixnote2.

robert7 avatar robert7 commented on August 21, 2024

@SethPoulsen
Hi, I'm not aware of, that anyone is working on it.
And I don't really have time for it. So sorting is of course possible, but not by clicking on column title.

To implement the feature isn't that difficult, so if you find someone who want to do it, then pull request is welcome of course.

from nixnote2.

MRC01 avatar MRC01 commented on August 21, 2024

Seth, what do you think about my description above how to bring back column header clicks and handle sorting vs searching? Would it be useful for it to work like that?

I've only made a few minor changes to Nixnote so I don't know if I'm up to this bigger change, but I too would like to get column click back so I might try it. We should move this to the right thread. Oh, this is the right thread - silly me.

from nixnote2.

SethPoulsen avatar SethPoulsen commented on August 21, 2024

As a baseline, I really want sort by column back, but the system you describe above (sort by column, then search) sounds great!

Let me know if you need help testing it when done.

from nixnote2.

MRC01 avatar MRC01 commented on August 21, 2024

Having 2-column sorting (click column A, then column B, sorts by B first, then by A to sort rows that are the same in B) is useful, but complicates this feature. When I get some free time I'll pull down the latest source code and look into this.

from nixnote2.

SethPoulsen avatar SethPoulsen commented on August 21, 2024

That would be cool, but I don't think we need to get that fancy. Just being able to sort by one column at this point would make me pretty happy.

from nixnote2.

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.