We setup a custom column with a type of numeric. When looking at views, we see it is being sorted incorrectly:
1
2
20
21
22
3
4
I had to apply a regular expression, "^0+", and then enter the values with leading 0's to workaround the issue but I should not have to do that. The column should be sorting correctly without adding the leading zeros and applying the regular expression.
Custom numeric column bug in MantisHub?
Moderators: Developer, Contributor
Re: Custom numeric column bug in MantisHub?
Known feature request https://www.mantisbt.org/bugs/view.php?id=6872
Re: Custom numeric column bug in MantisHub?
Thanks atrol.
I don't think this is very minor as indicated in MantisBT. It's a bug that needs to get fixed sooner than later.
If a type is numeric and it does not sort according to the actual value, that's a major bug.
I don't think this is very minor as indicated in MantisBT. It's a bug that needs to get fixed sooner than later.
If a type is numeric and it does not sort according to the actual value, that's a major bug.
Re: Custom numeric column bug in MantisHub?
Be aware that MantisBT is a community project. Bugs are fixed if a community member invests the time to fix them. It seems there was no high priority as the issue is open since more than 11 years.Rob wrote:It's a bug that needs to get fixed sooner than later.
Re: Custom numeric column bug in MantisHub?
Oh, I didn't know it was open source. That makes a difference as to when you can ask for something for sure. Just found another sorting bug with Category.