diff options
| author | Teddy Wing | 2015-10-08 05:03:12 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-10-08 05:03:12 -0400 |
| commit | 9a50e8f4abe9f50b7640b55afb606db6d3d4b0a8 (patch) | |
| tree | 12266e8001ea7cc9ceea475bd70c27a09e1bb46c /plugin | |
| parent | a9d0c154661dd7c07c00bf74bfbf79858a8a042d (diff) | |
| download | vim-space-vlaze-9a50e8f4abe9f50b7640b55afb606db6d3d4b0a8.tar.bz2 | |
leaderboard#Sort: Convert inputs to numbers before comparing
Otherwise the inputs get compared as strings and only the leftmost digit
of the number gets sorted so you end up with things like this:
[8, 43, 2, 13, 0]
Convert our inputs to numbers so that they get compared in their
entirety and larger numbers move to the head of the list.
Diffstat (limited to 'plugin')
0 files changed, 0 insertions, 0 deletions
