pp6calculator: Added sort functions