Updated sort function.

Continuing to experiment with enchantment sorting.