Vote #68599
未完了Version numbering sort
0%
説明
This is my first bug report im not sure if it is a bug but
0.1 0.2
1.0 1.1
Works good but if you do
0.1 0.2 0.11
It be a bit wrong
/ Slaktarn
journals
I think, you should use
<pre>
0.01
0.02
0.11
0.20
</pre>
If you want to change the version number from 0.1 to 0.01, I think, you can do that.
--------------------------------------------------------------------------------
Versions are sorted by date then by name (alphabetically), so what you describe is not a defect (1.1 < 1.10 < 1.2 is alphabetically correct).
What you expect is some kind of version numbering sort when names looks like x.y where x and y are integers.
--------------------------------------------------------------------------------
Are it not any way to first sort them after numbering?
/ Slaktarn
--------------------------------------------------------------------------------
SwedishMatch TimerWolf wrote:
> Are it not any way to first sort them after numbering?
>
> / Slaktarn
Or atlest if that not possibel first store after date and not name to get it right anyways it culd be a workaround
--------------------------------------------------------------------------------
I don't know of any versioning scheme in which "1.10" is smaller than "1.2". I think this issue deserves a higher priority, or even it could be set as a "defect".
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I guess the reason for this ticket not being solved within 10 years is the fact that there is no one-size-fits-all solution.
However, if you would refactor the code for the internal version sort to be extensible, I could help myself with a plugin.
--------------------------------------------------------------------------------
related_issues
relates,New,6974,Define manually the versions order in Roadmap (when date isn't defined)
duplicates,Closed,7269,Sort versions by version numbers x.y.z{z} instead of alphabetically
duplicates,Closed,28035,Order of versions is not correctly ordered