Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom sorting order #996

Closed
rmdort opened this issue Mar 31, 2020 · 2 comments
Closed

Custom sorting order #996

rmdort opened this issue Mar 31, 2020 · 2 comments

Comments

@rmdort
Copy link

rmdort commented Mar 31, 2020

Support Question

Hi, I searched through, couldnt find anything about custom sort order.

Lets say i want to display my rows of currencies in a particular order, Anyway to accomplish this in perspective? In a Pivoted view ofcos

['USD', 'AUD', 'CAD']
@texodus
Copy link
Member

texodus commented Apr 2, 2020

Thanks for the report!

This is an area we are actively working on. You can only achieve this currently by creating another column e.g. "currency order" with integer sort weights, and sorting by that column instead. Note it is not required for the new column to be visible for it to be a sort column, but if you are planning to then pivot by "currency" (for example to get a tree view of currencies), you may wish to set "currency order" aggregate to something like {"currency order": "unique"} (or any or dominant) so it is not sorted by sum of "currency order".

Future work on the back of #983 will allow simple specification for an enumerated "currency order" column ad-hoc in the UI or persistence API (so far this lacks support for scalars and var args/vectors).

@rmdort
Copy link
Author

rmdort commented Apr 4, 2020

Got it. Excited about computed/lambda columns. Thanks

@rmdort rmdort closed this as completed Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants