Can I control the order in which citations are numbered when dealing with floating blocks?

I have a long paragraph which breaks between two pages. I also have a floating figure at the bottom of the page. Both the paragraph and the floating block include citations with a numbered style (e.g., [1-3], [2,4,5]…)

I would like the citations in the main paragraph to be processed before those in the floating block. But if I input the source for the figure after the source for the paragraph, the floating figure moves to the next page (not good). And if I input the figure before the paragraph, its citations get processed first (not good either, in this case, because it awkwardly breaks up number sequences).

I’m looking for the opposite of hide(): a function that will process its input without outputing any content nor changing layout. Does that exist?

#let nocite(citation) = {
  place(hide[#cite(citation)])
}

#nocite(<key>)

#bibliography(bytes("@article{key, title = {Title}}"))

place is for not affecting the layout, hide to now showing the citation
Citations in `hide` do not work · Issue #622 · typst/typst · GitHub

1 Like