Please have a look at my answer here: Method of inserting in-text citation to get consistent set of groups