Tyriar / vscode-sort-lines

Visual Studio Code extension to sort lines of text
https://marketplace.visualstudio.com/items/Tyriar.sort-lines
MIT License
147 stars 42 forks source link

Feature request: Keep white lines #87

Closed sildehoop closed 3 years ago

sildehoop commented 3 years ago

I'm trying to sort a list but already grouped them like this

darksky_api_key

zone_home_latitude
zone_home_longitude

wifi_ssid
wifi_password

spotify_client_id
spotify_client_secret

twilio_account_sid
twilio_auth_token

google_calendar_client_id
google_calendar_client_secret

octoprint_key

miele_client_id
miele_client_secret

influxdb_database
influxdb_username
influxdb_password

and is sorts it like this

darksky_api_key
google_calendar_client_id
google_calendar_client_secret
influxdb_database
influxdb_password
influxdb_username
miele_client_id
miele_client_secret
octoprint_key
spotify_client_id
spotify_client_secret
twilio_account_sid
twilio_auth_token
wifi_password
wifi_ssid
zone_home_latitude
zone_home_longitude

I would like it to be sorted this way

darksky_api_key

google_calendar_client_id
google_calendar_client_secret

influxdb_database
influxdb_password
influxdb_username

miele_client_id
miele_client_secret

octoprint_key

spotify_client_id
spotify_client_secret

twilio_account_sid
twilio_auth_token

wifi_password
wifi_ssid

zone_home_latitude
zone_home_longitude
Tyriar commented 3 years ago

Sorry but I think this is a little specific/complex to implement a general feature.