built in operator: ket-sort

    description:
        ket-sort sp
        natural sort the given superposition by its ket labels

    examples:
        the-list-of |cities> => |Brisbane> + |Perth> + |Darwin> + |Hobart> + |Sydney> + |Melbourne> + |Adelaide>
        ket-sort the-list-of |cities>
            |Adelaide> + |Brisbane> + |Darwin> + |Hobart> + |Melbourne> + |Perth> + |Sydney>

    see also:
        coeff-sort, shuffle, reverse

Home