Page 1 of 1

Custom numeric column bug in MantisHub?

Posted: 25 Sep 2017, 10:27
by Rob
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.

Re: Custom numeric column bug in MantisHub?

Posted: 25 Sep 2017, 20:21
by atrol

Re: Custom numeric column bug in MantisHub?

Posted: 25 Sep 2017, 21:27
by Rob
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.

Re: Custom numeric column bug in MantisHub?

Posted: 25 Sep 2017, 22:06
by atrol
Rob wrote:It's a bug that needs to get fixed sooner than later.
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.

Re: Custom numeric column bug in MantisHub?

Posted: 25 Sep 2017, 22:39
by Rob
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.