vscode-extension-transformer icon indicating copy to clipboard operation
vscode-extension-transformer copied to clipboard

Sort options

Open alexolog opened this issue 3 years ago • 2 comments

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

alexolog avatar Mar 11 '21 00:03 alexolog

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

d-akara avatar Apr 11 '21 17:04 d-akara

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.

oerpli avatar Apr 22 '21 07:04 oerpli