Wrong sort order in numbered style

I have a problem with numbered citations in Endnote X7.

In their first occurence, I have cited serveral references as: “as shown previouls (32-27) …”

When I later try to cite one of those same references agein (the one listed as #37 in the reference list in fact), Endnote (wrongly) inserts “(32)” instead of “(37)”. Is this a bug? How can I fix this?

Thank you.

I found the solution. You need to manually click on “Edit & Manage citation(s)” and rearrange the order of oreferences included in the number range (32-37 in my case). Still, it is remains odd that Endnote does not respect the order it automatically applied when you cite a reference from the range later on. Seems like a bug.