Draw expressions in deterministic order.

So far, expression results were sorted and graphed in the order that the
expression queries completed. This change ensures that they are ordered
deterministically in the order that the user entered them.