Comments (5)
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.
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.
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.
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.
You are welcome!
from orgaggregate.
Related Issues (17)
- Invalid Function Error [Emacs 26.1] HOT 2
- Add support for new added Org Mode dynamic block inserting API HOT 2
- Referene name of aggrgated table is missing HOT 5
- org-insert-dblock.el: typo in (provide ....) line HOT 1
- Underscore in Header Line breaks vsum HOT 2
- How calculate values of column#x in whole rows contain some text? HOT 1
- Time formatters HOT 3
- Filtering empty rows (empty line in aggregated result) HOT 3
- Preserve horizontal lines in the aggregated tables when using the special column "hline" HOT 3
- Retain all columns when filtering via `:cond` HOT 4
- unknown rx from literal HOT 7
- Name the column generated by a formula HOT 2
- Add rows after aggregation? HOT 12
- Skip cookie rows HOT 3
- Suggestion: separate group by parameters from the projection of the grouping operations HOT 4
- compilation warnings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orgaggregate.