(ins)
| 15 | }) |
| 16 | |
| 17 | const sortingFunc = (ins) => { |
| 18 | if (sort.field === 'lastConnection') { |
| 19 | return ins.lastConnection ? -new Date(`${ins.lastConnection}`) : -Infinity |
| 20 | } |
| 21 | if (sort.field === 'host') { |
| 22 | return `${ins.host}:${ins.port}` |
| 23 | } |
| 24 | return sort.field |
| 25 | } |
| 26 | |
| 27 | return orderBy(filtered, sortingFunc, sort.direction) |
| 28 | } |
nothing calls this directly
no outgoing calls
no test coverage detected