fix sort order with `store` param in sort command