在本例中,我們宣告一個匿名函式 function (a, b) return a < b end ,將其做為參數傳入 table.sort 中, table.sort 就可以依據我們所傳入的匿名函式來排序。
確定! 回上一頁