(collectionOrArray: any, sortKey = `id`)
| 122 | } |
| 123 | |
| 124 | function sortedPlainRows(collectionOrArray: any, sortKey = `id`): Array<any> { |
| 125 | return plainRows(collectionOrArray).sort( |
| 126 | (a: any, b: any) => a[sortKey] - b[sortKey], |
| 127 | ) |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Recursively converts a live query collection (or child Collection) into a |
no test coverage detected