def _sort_run_times(x, show_time=True):
    """Sort runs based on acquisition times"""
    ordered_runs = sorted(x, key=lambda x: x[2])

    if show_time:
        return dict([(i[0], i[1]) for i in ordered_runs])
    else:
        return [i[0] for i in ordered_runs]