ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 1200 of file class.ilTestServiceGUI.php.

References $_GET.

1201 {
1202  $sort = ($_GET["sort"]) ? ($_GET["sort"]) : "nr";
1203  $sortorder = ($_GET["sortorder"]) ? ($_GET["sortorder"]) : "asc";
1204  if (strcmp($sortorder, "asc")) {
1205  $smaller = 1;
1206  $greater = -1;
1207  } else {
1208  $smaller = -1;
1209  $greater = 1;
1210  }
1211  if ($a[$sort] == $b[$sort]) {
1212  return 0;
1213  }
1214  return ($a[$sort] < $b[$sort]) ? $smaller : $greater;
1215 }
$_GET["client_id"]