📅  最后修改于: 2022-03-11 14:56:50.038000             🧑  作者: Mango
代码示例2
List get sortByHighestTransactions {
transactions.sort((txn1, txn2) => txn2.amount.compareTo(txn1.amount));
return transactions;
}