On Tuesday, June 24, 2014 10:39:28 AM UTC-5, Ben Fritz wrote:
> 
> I thought your sort could be done in Vim with 2 passes, but unfortunately it 
> does not work:
> 
> sort r /^\d\+/
> sort! /.*#/
> 

Bram, any chance that a way to guarantee a stable sort could be included, so 
sorting by multiple fields could be achieved natively? I'm guessing you just do 
a library call right now that does not offer such guarantees, but some extra 
flag to the :sort command could perhaps be created for a built-in (stable) sort 
algorithm. There are plenty out there with good performance, probably some 
open-source code we could incorporate as well. Heck, an alternate library call 
might be able to provide it.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui