Add getter and setter for sorting (refs #579)