Give last-modified-time higher priority in MRU mode

Refs #177
This commit is contained in:
Kien N 2012-04-14 03:18:18 +07:00
parent ccf90bfd8c
commit c8fbd773b4

View File

@ -1007,8 +1007,12 @@ fu! s:mixedsort(s1, s2)
let [mp_2, mp_3, mp_4, mp_1] = s:multipliers(cfn, par, cml, ctm)
el
let ctm = s:comptime(a:s1, a:s2)
if s:itemtype == 2
let [mp_2, mp_3, mp_4, mp_1] = s:multipliers(cfn, par, cml, ctm)
el
let [mp_1, mp_2, mp_3, mp_4] = s:multipliers(ctm, cfn, par, cml)
en
en
retu cln + ctm * mp_1 + cfn * mp_2 + par * mp_3 + cml * mp_4
en
let [mp_1, mp_2, mp_3, mp_4] = s:multipliers(cfn, par, cml, 0)