Пример #1
0
 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;
                 }
             }
         }
     });
 }
Пример #2
0
 private static void Quick(IntPtr info)
 {
     Sortable.Sort(info, (s, low, high, max) => QuickSorting.Sort(s, low, high, max));
 }