Implement basic AI preference by value sort