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 options #48

Open
alexolog opened this issue Mar 11, 2021 · 2 comments
Open

Sort options #48

alexolog opened this issue Mar 11, 2021 · 2 comments

Comments

@alexolog
Copy link

Is it possible to control whether the sort is case-sensitive or case-insensitive and whether it is ascending or descending?

@d-akara
Copy link
Owner

d-akara commented Apr 11, 2021

Currently it is not possible to choose case when sorting.
However, for ascending or descending you can always just issue the 'reverse' command.

@oerpli
Copy link

oerpli commented Apr 22, 2021

I have a somewhat related feature idea - though not sure if it something that is commonly used or needed.

I sometimes have strings that are "Big-Endian", i.e. the relevant character/grouping criterion is at the end of the line, instead of the front.

Here's an example:

FeatureA
FeatureA2
FeatureB

TestA
TestA2
TestB

What I would like to do is get

FeatureA
TestA

FeatureA2
TestA2

FeatureB
TestB
  • the empty lines are only there to seperate the "groups" when ordering
  • the exact order of the elements in each group doesn't matter (I can order them afterwards)
  • the exact order of the groups doesn't matter

I could achieve this with "reverse each line", "sort" "reverse each line" - but I must admit I don't know enough about unicode to estimate if this is actually feasible.

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

3 participants