Fix failing sms req test
action sort tweaks

- add date based sorting back.
- ensure forms with the same id are grouped together
- rename function to be clearer
switch from datetime to date and add comment to prevent this again
fix test