Fix items  resetting their durability.

When the items were sorted they got always repaired.