Improved vendor ordering check.