Does anyone know which algorithm is used internally on Vim when :sort command is used?
Is the same algorithm used to sort 10 lines than the one used to sort 10000 lines?
Does anyone know which algorithm is used internally on Vim when :sort command is
Share
Vim is open source; why don’t you just have a look yourself? It’s easiest via the online Mercurial repository:
http://code.google.com/p/vim/source/browse/src/ex_cmds.c
Vim delegates the actual sorting to the
qsort()library function.