src/engine/fun.js
function byLevel (a, b) {
    if (no(cachedLevelOf[a])) cachedLevelOf[a] = computeLevelOf(a)

    if (no(cachedLevelOf[b])) cachedLevelOf[b] = computeLevelOf(b)

    return cachedLevelOf[a] - cachedLevelOf[b]
  }
function byLevel (a, b) {
    if (no(cachedLevelOf[a])) cachedLevelOf[a] = computeLevelOf(a)

    if (no(cachedLevelOf[b])) cachedLevelOf[b] = computeLevelOf(b)

    return cachedLevelOf[a] - cachedLevelOf[b]
  }
function byLevel ( a , b ) { if ( no ( cachedLevelOf [ a ] ) ) cachedLevelOf [ a ] = computeLevelOf ( a ) if ( no ( cachedLevelOf [ b ] ) ) cachedLevelOf [ b ] = computeLevelOf ( b ) return cachedLevelOf [ a ] - cachedLevelOf [ b ] }
Sorts tasks by their level.
Sorts tasks by their level .