(a, b)
| 2317 | } |
| 2318 | |
| 2319 | function compare(a, b) { |
| 2320 | // Compare sort index first, then task id. |
| 2321 | var diff = a.sortIndex - b.sortIndex; |
| 2322 | return diff !== 0 ? diff : a.id - b.id; |
| 2323 | } |
| 2324 | |
| 2325 | // TODO: Use symbols? |
| 2326 | var NoPriority = 0; |
no outgoing calls
no test coverage detected