minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-08-25 01:29:15 +03:00
parent eea835f065
commit bcf19a035b

View File

@ -1520,18 +1520,17 @@ var BrowseActionsActions = actions.Actions({
ai = ai ? ai.pop()*1 : null ai = ai ? ai.pop()*1 : null
ai = ai > 0 ? -ai ai = ai > 0 ? -ai
: ai < 0 ? -ai + level.length : ai < 0 ? -ai + level.length
: 0 //level.indexOf(a) : 0
var bi = PRIORITY.exec(b) var bi = PRIORITY.exec(b)
bi = bi ? bi.pop()*1 : null bi = bi ? bi.pop()*1 : null
bi = bi > 0 ? -bi bi = bi > 0 ? -bi
: bi < 0 ? -bi + level.length : bi < 0 ? -bi + level.length
: 0 //level.indexOf(b) : 0
var o = ai - bi return ai == bi ?
return o == 0 ?
level.indexOf(a) - level.indexOf(b) level.indexOf(a) - level.indexOf(b)
: o : ai - bi
}) })
.forEach(function(key){ .forEach(function(key){
// remove the order... // remove the order...