There is a certain order of wearing medals adopted in most countries. It is also used for displaying medals in infoboxes. We need to make sure that this order is respected when displaying medals from the Wikidata.
For USSR and Russian medals the order is specified on the talk page:
Source code of the submodule: https://ru.wikipedia.org/wiki/Module:Wikidata/Medals