(a, b)
| 3115 | } |
| 3116 | |
| 3117 | function compare(a, b) { |
| 3118 | // Compare sort index first, then task id. |
| 3119 | var diff = a.sortIndex - b.sortIndex; |
| 3120 | return diff !== 0 ? diff : a.id - b.id; |
| 3121 | } |
| 3122 | |
| 3123 | // TODO: Use symbols? |
| 3124 | var NoPriority = 0; |
no outgoing calls
no test coverage detected