Order of references

I use “by order of occurence” to sort my references in an article (full references in the end bibliography, number in brackets in the article). Sometimes, several references are given at the same position in the text. I would find it very useful to have a tool that allows me to automatically sort the references that appear at the same position by a “secondary class ordering”, for exemple by year of publishing.