Currently the sorting does not work as i would expect as user: No matter what i changed last (sortByTotal / sortByCreatedAt) it always sorts by createdAt first and then total as secondary criteria.
As a user i would expect that the last thing i clicked takes complete precedence, maybe even resetting the other sort param to inactive.