Zend certified PHP/Magento developer

Different Order ID Prefix Based on Customer Group

Is there a way to update the Order ID prefix based on the user’s customer group? E.G. wholesale customer starts with 2 while retail starts with 1.