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

Sort option has no effect to output #59

Closed
LukasFritzeDev opened this issue Sep 10, 2023 · 1 comment · Fixed by #146
Closed

Sort option has no effect to output #59

LukasFritzeDev opened this issue Sep 10, 2023 · 1 comment · Fixed by #146

Comments

@LukasFritzeDev
Copy link
Contributor

LukasFritzeDev commented Sep 10, 2023

The option --sort for mw project list has no effect.

None of these commands produces an error, but the output table is sorted by created at.

mw project list --sort="customer-id" --extended
mw project list --sort="organisationId" --extended
mw project list --sort="customerId" --extended
@martin-helmich
Copy link
Member

Same as in #58 (comment) -- --sort needs the actual table header as parameter, not the underlying field name.

Just as filtering (see #58), sorting is broken by design, since it sorts based on the rendered output and not the underlying values. Just try a --sort "created by" to see what I mean.

martin-helmich added a commit that referenced this issue Dec 19, 2023
See #58 and #59 for a discussion on this; client-side sorting and
filtering is broken by design, which is why I have decided to remove
it (for now), until it can be implemented correctly at a later time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants