private static void Bubble(IntPtr info) { Sortable.Sort(info, (s, low, high, max) => { for (int i = low; i <= high; i++) { for (int j = low; j <= high; j++) { if (max(s[j], s[i])) { NSJSValue n = s[i]; s[i] = s[j]; s[j] = n; } } } }); }
private static void Quick(IntPtr info) { Sortable.Sort(info, (s, low, high, max) => QuickSorting.Sort(s, low, high, max)); }