Sorts an array containing one or more values from an enumeration of three elements