function recordsAsSortedList(records) {
            const list = []
            for(let i = 0; i < records.length; i++) {
                let innerList = []
                for (const [key, value] of Object.entries(records[i])) {
                    if(key == 'liquidityRecords') {
                        addLiquidityRows(value, innerList)
                    }
                    else {
                        innerList.push([key,value])
                    }
                }
                innerList.sort((a, b) => a[1].order - b[1].order)
                list.push(innerList)
            }
            return list
        }
@param {TableRecord[]} records 
@returns {[string,RecordValue][][]}