Fix DNI. Improve student build. Fix record, login.

It's currently working on both pre-HC and post-HC. It gives problems with the reload on landscape/portrait after a switch.
Further fix login. Remove gen/. Added strings.
Added changes on preferences prior to branching
Fix sort order.

Sort order should be actually working
Add comparator. Add sorts

Needs working on the comparation, they are still naked.

Also needs to correctly build the student object.