improved the chest sorting algorithm

it does now calculate for enchatment levels