Modify a bug so as to be able to sort successfully.
Modify types.