Three distinct real numbers form (in some order) a 3-term arithmetic sequence, and also form (in possibly a different order) a 3-term geometric sequence.  Compute the greatest possible value of the common ratio of this geometric sequence.