[MERGE]
From the author comments.
- Add a module to sort timesheet lines by date and account name instead of the dummy id sorting.
- Change default date for manually entering attendances to last date instead of now.
- Redefines constraint on attendances to check only the sheet the attendance belongs to.