default to server_date in action sort if not submitted by the same user

also adds and touches up tests

easiest read commit-by-commit