- commenti
This commit is contained in:
+4
-1
@@ -575,7 +575,10 @@ function BeamLib.TableCopyDeep( OriginalTable)
|
||||
return CopiedTable
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
-- Merge sorting - algoritmo di sorting stabile, ossia che mantiene l'ordine relativo se gli elementi sono equivalenti
|
||||
-- TODO vedere come riordinare (tutto in tabella MergeSort??)
|
||||
-- TODO libreria Sorting??
|
||||
do
|
||||
-- unisce due liste ordinate
|
||||
local function MergeHalves(Left, Right, Compare)
|
||||
@@ -618,7 +621,7 @@ do
|
||||
return MergeHalves( Left, Right, Compare)
|
||||
end
|
||||
|
||||
-- funzione per l'ordinamento che verrà chiamata da fuori
|
||||
-- chiamata accessibile dall'esterno
|
||||
function BeamLib.StableSort( List, Compare)
|
||||
return MergeSort( List, Compare)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user