Fixes the citation/reference ordering.