javascript/viewAppointment.js - Sorting and Miscellany

Viewing all appointments will display all appointments sorted (as when searching), rather than in quasi-random order.

Doctors' names will be displayed uniformly (first and last name separated by a space).

Fixed a bug which could cause appointments in the morning to be neglected.

Removed (apparently) dead/unneeded code, and code which just caused errors in Chrome.