fixed bug in driver sorting