Snippets: fixed a table copy issue with SortRandom