Skip to content

Instantly share code, notes, and snippets.

@craigdallimore
Last active January 27, 2022 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigdallimore/def35e4910ad4f976535131073c762ad to your computer and use it in GitHub Desktop.
Save craigdallimore/def35e4910ad4f976535131073c762ad to your computer and use it in GitHub Desktop.
VSC sort vs Vim sort

VSC Line Sort Order

Using command palette > Sort Lines Ascending

1.63.2 (Universal)

stop
STOP
stopping
stopSearch

VIM Line Sort Order

Using :sort

NVIM v0.5.1

STOP
stop
stopSearch
stopping

JavaScript

Using ['stop', 'STOP', 'stopping', 'stopSearch'].sort()

node v16.6.0, may be different depending on JS implementation

[
  "STOP",
  "stop",
  "stopSearch",
  "stopping"
]

sort (GNU coreutils)

8.31

STOP
stop
stopSearch
stopping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment