sort the broker service code