* fix validation for start and end date in spreadsheet layout * revamp logic for sorting in all fields