Fix entity sorting by value instead of by distance...