Check out the first of a couple of blogs on how to sort using multiple criteria.
Four wheel steering equations
Looking into some simple equations to control a four wheeled robot with electric motors driving each wheel. The bot needs to be able to steer in several modes: four wheel steering, front wheel steering, rear wheel and crab mode. Check it out here.