cylc show: fix output ordering by sorting it

This fixes the current trivially-failing tests for `cylc show`.

@hjoliver, please review.