Fixed empty index string bug and bespoke ordering.