php: fix bug when updating
javascript: add sorttable
php: add extra rule in IDNum for foreign students