|
2013/5/3 S. Fisher <expandafter@yahoo.com>It's a hybrid merge-insertion sort. Running under LuaJIT, it's
pretty fast.
I only wrote this quickly and haven't given it intensive testing, but this sort function is pretty simple, short, stable and fast (only tested your function in vanilla Lua - it performed about 20% faster) - so without warranty, here's the code: