sort_basis function

Sort the basis-set elements alphabetically.