使用QC工具,怎么把后面的测试需求内容提到同等级别的前面呢?
比如:
1、B
2、C
3、D
4、E
5、F
6、A
想把第6条的内容提到第1条,即改为
1、A
2、B
3、C
4、D
5、E
6、F
问了几位都说改不了!QC里没有直接可以改的相应选项。
请指点!

解决方案 »

  1.   

    $fruits = array("a", "c", "d", "e", "j", "f", "g", "a");
    sort($fruits);
    // outPut
    // array( "a", "b", "c", "d", "e", "f", "g", "j");
      

  2.   

    如果你只是为了把最后为提到第一位
    $fruits = array("b", "c", "d", "e", "f", "a"); 
    $temp = array_pop($fruits);
    //或者这样也行
    //$temp = $fruits[6];unset($fruits[6]);
    array_unshift($fruits,$temp);
    // Output
    // $fruits=>array("a", "b", "c", "d", "e", "f");