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

Single Line Sorting with Delimiter #17

Open
hl2guide opened this issue Sep 25, 2023 · 0 comments
Open

Single Line Sorting with Delimiter #17

hl2guide opened this issue Sep 25, 2023 · 0 comments

Comments

@hl2guide
Copy link

Please consider adding a command to sort one single line, or within a selection of one line, using a delimiter.

e.g.

1|2|3|4|6|5

becomes

1|2|3|4|5|6

Example written in PowerShell:

# Sorts a one-line list
$text = "1|2|3|4|6|5"
$delimiter = "|"
$text = $text.Split($delimiter) | Sort-Object
$text = $text -join $delimiter
# Set-Clipboard -Value $text
$text

It would be useful.

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

1 participant