Example #1
0
 static public List <Estudiante> Quick(List <Estudiante> arr, int left, int right, string parametro, bool EsAscendente)
 {
     if (EsAscendente)
     {
         if (left < right)
         {
             int q = Recursos.ParticionAsc(arr, left, right, parametro);
             Quick(arr, left, q - 1, parametro, EsAscendente);
             Quick(arr, q + 1, right, parametro, EsAscendente);
         }
         return(arr);
     }
     else
     {
         if (left < right)
         {
             int q = Recursos.ParticionDes(arr, left, right, parametro);
             Quick(arr, left, q - 1, parametro, EsAscendente);
             Quick(arr, q + 1, right, parametro, EsAscendente);
         }
         return(arr);
     }
 }