[ENTESB-1415] Compare versions regardless of the selection order