Re: sorting file content by third numbered column

2018-03-14 Thread Ni Va
Le mercredi 14 mars 2018 09:31:24 UTC+1, Ni Va a écrit : > I have done this explained before. Dict that have total time in key and csv > line in value. > > > Then I can do a  reverse(sort( numerical order but I would like to retrieve > values and the code above retrieve keys sorted. > so

Re: sorting file content by third numbered column

2018-03-14 Thread Ni Va
I have done this explained before. Dict that have total time in key and csv line in value. Then I can do a reverse(sort( numerical order but I would like to retrieve values and the code above retrieve keys sorted. so I need the last step. . . let line =

Re: sorting file content by third numbered column

2018-03-14 Thread Christian Brabandt
On Di, 13 Mär 2018, Ni Va wrote: > > Oh and BTW: please trim your quotes and write your statement below to > > what you are referring to. Please trim your quotes. Have you tried using a custom compare function similar to what is written to the help at :h sort()? BTW: please provide a

Re: sorting file content by third numbered column

2018-03-14 Thread Erik Christiansen
On 13.03.18 07:41, Ni Va wrote: > The csv file attached below it produced from this code particularly by from > s:results list of strings. > > I import it into excel and then do a sort from max to min spent time by third > column. > > I would do the same from this vimscript below on in order

Re: sorting file content by third numbered column

2018-03-13 Thread Ni Va
Le mardi 13 mars 2018 14:34:20 UTC+1, Christian Brabandt a écrit : > On Di, 13 Mär 2018, Ni Va wrote: > > > By Total time column for example. > > Sorry, I find your answers in general too terse to try to figure out > what exactly you are trying to do now and I do not feel like guessing. > > It

Re: sorting file content by third numbered column

2018-03-13 Thread Christian Brabandt
On Di, 13 Mär 2018, Ni Va wrote: > By Total time column for example. Sorry, I find your answers in general too terse to try to figure out what exactly you are trying to do now and I do not feel like guessing. It looks as you'd like to sort buffer content, while you were saying before you

Re: sorting file content by third numbered column

2018-03-13 Thread Ni Va
Le mardi 13 mars 2018 12:18:31 UTC+1, Christian Brabandt a écrit : > On Mo, 12 Mär 2018, Ni Va wrote: > > > Thanks but it's a list content not a buffer content in my case. > > Write a custom Sort Function, that splits() your content and sorts on > the third field? > > BTW: Please provide

Re: sorting file content by third numbered column

2018-03-13 Thread Christian Brabandt
On Mo, 12 Mär 2018, Ni Va wrote: > Thanks but it's a list content not a buffer content in my case. Write a custom Sort Function, that splits() your content and sorts on the third field? BTW: Please provide complete exact examples. Makes it easier to understand you and test. Best, Christian

Re: sorting file content by third numbered column

2018-03-12 Thread Ni Va
Le lundi 12 mars 2018 22:19:41 UTC+1, Tim Rice a écrit : > Personally, I would pipe it through an external command, eg: > > :%! sort -n -k3 > > Within Vim on a Linux box that command results in text roughly like so for > me: > > Bar() 2 0.1320.066 > Foo.set_bar()

Re: sorting file content by third numbered column

2018-03-12 Thread Timothy Rice
Personally, I would pipe it through an external command, eg: :%! sort -n -k3 Within Vim on a Linux box that command results in text roughly like so for me: Bar() 2 0.1320.066 Foo.set_bar() 2 0.2234 0.1117 FooBar.set_foo() 173 6.6418 0.038392

sorting file content by third numbered column

2018-03-12 Thread Ni Va
Hi, I don't happen to sort this kind of list by the third float numbered column. Foo..ctor() 1 10.4901 10.4901 Bar() 2 0.132 0.066 FooBar.set_foo()173 6.6418 0.038392 Foo.set_bar() 2 0.2234 0.1117 FooBar.Calc() 358 1164.8912 3.253886 --