:help :sort|/first number

The documentation reads

<                       To sort on the first number in the line, no matter
                         what is in front of it: >
                                 :sort /.*\ze\d/

which is clearly wrong. As * is greedy, this actually sorts on the last digit 
in 
the line. The correct command would be something like

:sort /.\{-}\ze\d/

Ben.


Send instant messages to your online friends http://au.messenger.yahoo.com 


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui