Added sorting to report.php page

Respondents on report.php page now sorted first by first answer, then by
idnumber

Removed magic number -1 for default answer value.
Replaced magic number with constant LABASSIGNMENT_DEFAULT_VALUE

Removed deprecated function call from index.php