calculator: fix ordering of operators

Authored by sandsmark on Oct 8 2017, 11:37 AM.