Giter VIP home page Giter VIP logo

Comments (5)

tbanel avatar tbanel commented on August 12, 2024 1

Ok, sorting the output table is now implemented.

Sorting instructions can be added to any column, either a key column or a formula column. This is done by adding a semicolon and a caret to the column specification: mycolumn;^n. Without sorting specifications, everything works as before.

There is no separate :sort parameter, because changing, adding, or reordering columns would make things confused.

Org Mode conventions are used:

  • a/n/t for sorting alphabetically/numerically/by date
  • A/N/T for sorting in descending order

I close this issue. Feel free to open a new issue in case of a bug or something.

from orgaggregate.

tbanel avatar tbanel commented on August 12, 2024

Very good suggestion! I have sorting output in my todo list.

I am not quite sure what would be the most convenient syntax for specifying that.

  • ascending-descending, alphabetic, numeric, time&dates, custom (with custom lisp functions)
  • several columns can be specified
  • should there be a :sort option?
    :sort thiscolumn;A thatcoloumn:t
    (sort first on thiscolumn, alphabetically, descending, then on thatcolumn, as date-time, ascending)
  • or should we add something in the :cols specifier?
    :cols ... thiscolumn;A1 ... thatcolumn;t2 ...
    (sort thiscolumn 1st, alphabetically, descending, then thatcolumn 2nd, as date-time, ascending)

In the meantime, it is still possible to sort the output manually with C-c ^

from orgaggregate.

wuqui avatar wuqui commented on August 12, 2024

Cool!

I think I would prefer a separate :sort argument. This way, everything will still work as usual if one doesn't need sorting.

Specifying column types for sorting the same way it's done in org-tables makes sense, I think. So :sort date_col:t alph_col:A etc. for different data types and capital letters to specify ascending/descending order.

I actually have one more idea/suggestion for your package. I'm gonna quickly open a separate issue for that since it's not related.

from orgaggregate.

wuqui avatar wuqui commented on August 12, 2024

Hey, just want to leave a big thank you! 🙂

Unfortunately, I had Emacs config issues and couldn't check it out earlier. But thanks to org-mode I didn't forget about this and I'm really glad to have this feature. Cheers!

from orgaggregate.

tbanel avatar tbanel commented on August 12, 2024

You are welcome!

from orgaggregate.

Related Issues (17)

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.