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
E301 expected 1 blank line, found 0