ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilTestServiceGUI.php File Reference

Go to the source code of this file.

Data Structures

class  ilTestServiceGUI
 Service GUI class for tests. More...
 

Functions

 sortResults ($a, $b)
 

Function Documentation

◆ sortResults()

sortResults (   $a,
  $b 
)

Definition at line 1287 of file class.ilTestServiceGUI.php.

References $_GET.

1288 {
1289  $sort = ($_GET["sort"]) ? ($_GET["sort"]) : "nr";
1290  $sortorder = ($_GET["sortorder"]) ? ($_GET["sortorder"]) : "asc";
1291  if (strcmp($sortorder, "asc"))
1292  {
1293  $smaller = 1;
1294  $greater = -1;
1295  }
1296  else
1297  {
1298  $smaller = -1;
1299  $greater = 1;
1300  }
1301  if ($a[$sort] == $b[$sort]) return 0;
1302  return ($a[$sort] < $b[$sort]) ? $smaller : $greater;
1303 }
$_GET["client_id"]